Ligne 1 : |
Ligne 1 : |
| {{Arduino Yun-NAV}} | | {{Arduino Yun-NAV}} |
| | | |
− | <h4>begin()</h4> | + | <h4>readMessage()</h4> |
| | | |
| == Description == | | == Description == |
− | Classe [[Arduino Yun-Librairie#Bridge_-_classes_et_m.C3.A9thodes|Bridge]], librairie/bibliothèque d'[[Arduino Yun-Librairie|Arduino Yùn]].
| + | Reads a message from the Linux processor to the AVR. |
− | | |
− | Starts Bridge, facilitating communication between the AVR and Linux processor. This should be called once in ''setup()''
| |
− | | |
− | ''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.readMessage(buffer, size) |
| | | |
| == Paramètres == | | == Paramètres == |
| | | |
− | aucun
| + | * '''buffer''': (int) The buffer to read |
| + | * '''size''': (int) The size of the buffer |
| | | |
| == Résultat == | | == Résultat == |
| | | |
− | aucun
| + | int : the message that was read |
| | | |
| == Exemple == | | == Exemple == |
Ligne 28 : |
Ligne 25 : |
| == Voir aussi == | | == Voir aussi == |
| * [[RB-ARD-YUN-Class-Bridge|constructeur Bridge]] | | * [[RB-ARD-YUN-Class-Bridge|constructeur Bridge]] |
− | * [[RB-ARD-YUN-Process-Func-begin|Process.begin()]] | + | * [[RB-ARD-YUN-Bridge-Func-begin|Bridge.begin()]] |
− | * [[RB-ARD-YUN-Console-Func-begin|Console.begin()]]
| + | * [[RB-ARD-YUN-Bridge-Func-writeMessage|Bridge.writeMessage()]] |
− | * [[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}} |