Modifications

Sauter à la navigation Sauter à la recherche
135 octets supprimés ,  4 décembre 2013 à 11:35
aucun résumé de modification
Ligne 4 : Ligne 4 :     
== Description ==
 
== Description ==
Classe [[Arduino Yun-Librairie#Bridge_-_classes_et_m.C3.A9thodes|Bridge]], librairie/bibliothèque  d'[[Arduino Yun-Librairie|Arduino Yùn]].
+
The ''put()'' function allows you to store data on the Linux processor using a Key/Value structure. The Key field is like a label and you can associate a value to it. The key name must be unique in order to identify the correct value. On the Linux side there is a data store where all the keys and the values are saved.
   −
Starts Bridge, facilitating communication between the AVR and Linux processor. This should be called once in ''setup()''
+
The datastore is saved in the RAM of the AR9331, you will lose the datastore when you restart the bridge software on the Linux side (through power cycling, resetting the Linux processor, or uploading a sketch through WiFi or Ethernet). You will not lose the datastore if you reset the ATMega32u4 processor.  
 
  −
''begin()'' is a blocking function. Once you call Bridge.begin(), nothing else will happen in your sketch until it has completed. This process takes approximately three seconds.  
      
== Syntaxe ==
 
== Syntaxe ==
   −
Bridge.begin()  
+
bridge.put(key, value)
    
== Paramètres ==
 
== Paramètres ==
   −
aucun
+
* '''key''': char or string, the key name you want to assign to identify the value.
 +
* '''value''': char or string, the value you want to store.
    
== Résultat ==
 
== Résultat ==
Ligne 27 : Ligne 26 :     
== Voir aussi ==
 
== Voir aussi ==
* [[RB-ARD-YUN-Class-Bridge|constructeur Bridge]]
+
* [[RB-ARD-YUN-Process-Func-get|Bridge.get()]]
* [[RB-ARD-YUN-Process-Func-begin|Process.begin()]]
  −
* [[RB-ARD-YUN-Console-Func-begin|Console.begin()]]
  −
* [[RB-ARD-YUN-Bridge-Func-readMessage|Bridge.readMessage()]] [http://arduino.cc/en/Reference/YunReadMessage src]
  −
* [[RB-ARD-YUN-Bridge-Func-writeMessage|Bridge.writeMessage()]] [http://arduino.cc/en/Reference/YunWriteMessage src]
  −
* [[RB-ARD-YUN-Bridge-Func-messageAvailable|Bridge.messageAvailable()]] [http://arduino.cc/en/Reference/YunMessageAvailable src]
  −
 
      
{{Arduino Yun-TRAILER}}
 
{{Arduino Yun-TRAILER}}
30 894

modifications

Menu de navigation