Différences entre versions de « RB-ARD-YUN-Process-Func-write »
(Page créée avec « {{Arduino Yun-NAV}} <h4>write()</h4> == Description == {{bloc-etroit|text=Classe Process, librairie/bibliothè... ») |
|||
Ligne 7 : | Ligne 7 : | ||
− | + | Writes data to a Linux process. This data is sent as a byte or series of bytes. write() inherits from the [http://arduino.cc/en/Reference/Stream Stream] utility class.}} | |
== Syntaxe == | == Syntaxe == | ||
− | Process. | + | Process.write(val) |
+ | Process.write(str) | ||
+ | Process.write(buf, len) | ||
== Paramètres == | == Paramètres == | ||
− | + | * val: a value to send as a single byte | |
+ | * str: a string to send as a series of bytes | ||
+ | * buf: an array to send as a series of bytes | ||
+ | * len: the length of the buffer | ||
== Résultat == | == Résultat == | ||
− | + | byte : the number of bytes written. Reading the number is optional. | |
== Exemple == | == Exemple == | ||
Ligne 27 : | Ligne 32 : | ||
* [[RB-ARD-YUN-Process-Func-addParameter|Process.addParameter()]] | * [[RB-ARD-YUN-Process-Func-addParameter|Process.addParameter()]] | ||
* [[RB-ARD-YUN-Process-Func-run|Process.run()]] | * [[RB-ARD-YUN-Process-Func-run|Process.run()]] | ||
− | * [[RB-ARD-YUN-Process-Func- | + | * [[RB-ARD-YUN-Process-Func-begin|Process.begin()]] |
{{Arduino Yun-TRAILER}} | {{Arduino Yun-TRAILER}} |
Version du 16 décembre 2013 à 14:11
write()
Description
Classe Process, librairie/bibliothèque d'Arduino Yùn.
Writes data to a Linux process. This data is sent as a byte or series of bytes. write() inherits from the Stream utility class.
Syntaxe
Process.write(val) Process.write(str) Process.write(buf, len)
Paramètres
- val: a value to send as a single byte
- str: a string to send as a series of bytes
- buf: an array to send as a series of bytes
- len: the length of the buffer
Résultat
byte : the number of bytes written. Reading the number is optional.
Exemple
aucun
Voir aussi
Source: Arduino Yun, Guide to the Arduino Yún. Crédit: Arduino.cc, licence Creative Common Attribution ShareAlike.
Toute référence, mention ou extrait de cette traduction doit être explicitement accompagné du texte suivant : « Traduction par MCHobby (www.MCHobby.be) - Vente de kit et composants » avec un lien vers la source (donc cette page) et ce quelque soit le média utilisé.
L'utilisation commercial de la traduction (texte) et/ou réalisation, même partielle, pourrait être soumis à redevance. Dans tous les cas de figures, vous devez également obtenir l'accord du(des) détenteur initial des droits. Celui de MC Hobby s'arrêtant au travail de traduction proprement dit.