Différences entre versions de « RB-ARD-YUN-Process-Func-write »

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche
(Page créée avec « {{Arduino Yun-NAV}} <h4>write()</h4> == Description == {{bloc-etroit|text=Classe Process, librairie/bibliothè... »)
 
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}}

Version du 16 décembre 2013 à 14:11


MCHobby investit du temps et de l'argent dans la réalisation de traduction et/ou documentation. C'est un travail long et fastidieux réalisé dans l'esprit Open-Source... donc gratuit et librement accessible.
SI vous aimez nos traductions et documentations ALORS aidez nous à en produire plus en achetant vos produits chez MCHobby.

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.