Modifications

Sauter à la navigation Sauter à la recherche
97 octets ajoutés ,  21 novembre 2013 à 12:04
Ligne 409 : Ligne 409 :  
}</nowiki>
 
}</nowiki>
   −
Create a function named '''process''' that accepts the YunClient as its argument. Read the command by creating a string to hold the incoming information. Parse the REST commands by their functionality (digital, analog, and mode) and pass the information to the appropriately named function.  
+
Créer ensuite une fonction nommée '''process''' ("''traitement''") qui accepte un YunClient comme argument. Lit la commande et stocke l'information entrante dans une chaine de caractère. Parse/décompose la commande REST en fonction de sa fonctionnalité (digital, analog et mode) et passe l'information à la sous fonction de traitement adéquate (et nommée de façon intelligible).  
    
  <nowiki>void process(YunClient client) {
 
  <nowiki>void process(YunClient client) {
29 917

modifications

Menu de navigation