Modifications

Sauter à la navigation Sauter à la recherche
405 octets ajoutés ,  16 décembre 2013 à 14:11
aucun résumé de modification
Ligne 7 : Ligne 7 :       −
xxxx.}}
+
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.xxx(cmd)  
+
  Process.write(val)
 +
Process.write(str)
 +
Process.write(buf, len)  
    
== Paramètres ==
 
== Paramètres ==
   −
aucun
+
* 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 ==
   −
aucun
+
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-runAsynchronously|Process.runAsynchronously()]]
+
* [[RB-ARD-YUN-Process-Func-begin|Process.begin()]]
    
{{Arduino Yun-TRAILER}}
 
{{Arduino Yun-TRAILER}}
29 879

modifications

Menu de navigation