Modifications

Sauter à la navigation Sauter à la recherche
862 octets ajoutés ,  17 octobre 2013 à 11:28
Ligne 67 : Ligne 67 :     
{{ARDImage|Arduino Yun-Guide-01.png}}
 
{{ARDImage|Arduino Yun-Guide-01.png}}
 +
<small>Accès aux API (interface de programmation) REST. "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) .
 
A nice introduction to the concepts behind REST [http://stackoverflow.com/tags/rest/info can be found here] (''Anglais'', StackOverflow.com) .
   −
The there are two REST end points recognized by the Yún are:  
+
The there are two REST end points recognized by the Yún are:
 +
* /arduino
 +
* /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.
 +
 
 +
"/data" is used to access to the internal key/value storage. The available calls are:
 +
 
 +
* /put/KEY/VALUE : stores a value inside the storage
 +
* /get/KEY : obtains the value of the requested key in JSON
 +
* /get : obtains the entire storage list in JSON.
 +
* /delete : deletes the internal storage
 +
 
 +
== Reset des processeurs (AR9331, WiFi et 32U4)==
    
{{traduction}}
 
{{traduction}}
29 918

modifications

Menu de navigation