Modifications

Sauter à la navigation Sauter à la recherche
439 octets ajoutés ,  22 octobre 2013 à 11:09
Ligne 72 : Ligne 72 :  
== Services WEB ==
 
== Services WEB ==
   −
Linino uses REST for clients and servers. REST is an acronym for "Representational State Transfer". It is a software architecture that exposes various parts of the Arduino hardware through URLs.
+
Pour les clients et serveurs "Service WEB", Linino supporte REST. REST est l'acronyme de "Representational State Transfer" (''difficilement traduisible''). C'est une architecture logiciel qui expose les différentes parties du matériel Arduino par l'intermédaire d'URL.
   −
By default, the REST API access is password protected. It is possible to change this to access the services without a password. To change this setting, enter the Yún configuration panel. At the bottom of the page, you will see toggles for changing the access.  
+
Par défaut, les accès à l'interface de programmation REST (REST API) est protégé par un mot de passe. Il est possible de modifier l'accès à ce service afin de ne pas utiliser de mot de passe. Pour modifier ce paramètre, entrer dans le panneau de configuration de votre Yún. Vous trouverez l'interface permettant de basculer cette option d'accès en bas de la page.  
    
{{ARDImage|Arduino Yun-Guide-01.png}}
 
{{ARDImage|Arduino Yun-Guide-01.png}}
 
<small><br />Accès aux API (interface de programmation) REST.<br />"Open" signifie que l'interface est ''ouverte'' donc librement accessible. "With Password" signifie qu'elle est protégée par un mot de passe.</small>
 
<small><br />Accès aux API (interface de programmation) REST.<br />"Open" signifie que l'interface est ''ouverte'' donc librement accessible. "With Password" signifie qu'elle est protégée par un mot de passe.</small>
   −
A nice introduction to the concepts behind REST [http://stackoverflow.com/tags/rest/info can be found here] (''Anglais'', StackOverflow.com) .
+
Une chouette introduction sur les concepts REST [http://stackoverflow.com/tags/rest/info peut être trouvé ici] (''Anglais'', StackOverflow.com) .
   −
The there are two REST end points recognized by the Yún are:
+
Sur le Yún, il y a deux point d'accès REST (''REST end points'') reconnu:
 
* /arduino
 
* /arduino
 
* /data  
 
* /data  
   −
The "/arduino" directory doesn't have anything pre-configured. Anything added to the URL after the end point is passed from the webserver to the sketch on the 32U4. You can define your APIs inside the sketch. See the Bridge example to see how this is done to access the pins on the board.
+
Le répertoire "/arduino" n'est pas pré-configuré. Tout ce qui est ajouté dans l'URL derrière le point d'accès est transféré par le Serveur Web au sketch/croquis fonctionnant sur le 32U4. Vous pouvez définir vos propres interfaces de programmation (API) à l'intérieur de votre sketch/croquis. Consultez les exemples "Bridge" pour comment il est possible d'offrir un accès à une broche Arduino via l'interface REST.
   −
"/data" is used to access to the internal key/value storage. The available calls are:
+
"/data" est utilisé pour fournir un accès à un stockage interne de type Clé/Valeur (key/value). Les appels possible sont:
   −
* /put/KEY/VALUE : stores a value inside the storage
+
* /put/KEY/VALUE : stocke une valeur ''value'' pour le clé ''key''.
* /get/KEY : obtains the value of the requested key in JSON
+
* /get/KEY : obtenir la valeur de la clé ''KEY''. Retour au format JSON
* /get : obtains the entire storage list in JSON.
+
* /get : Otenir une liste de éléments stockés au format JSON.
* /delete : deletes the internal storage
+
* /delete : efface le contenu du stockage intene
    
== Reset des processeurs (AR9331, WiFi et 32U4)==
 
== Reset des processeurs (AR9331, WiFi et 32U4)==
29 917

modifications

Menu de navigation