Modifications

Sauter à la navigation Sauter à la recherche
55 octets ajoutés ,  8 septembre 2017 à 17:06
Ligne 82 : Ligne 82 :     
=== Python en utilisant JsonRPC ===
 
=== Python en utilisant JsonRPC ===
You can also control the UniPi using Python library jsonrpclib. See the list of all available methods below.
+
Vous pouvez également contrôler UniPi en utilisant la bibliothèque Python {{fname|jsonrpclib}}. Voyez, ci-dessous, une liste de toutes les méthodes disponibles.
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
Ligne 91 : Ligne 91 :  
s.relay_set(1,0)
 
s.relay_set(1,0)
 
s.relay_get(0)
 
s.relay_get(0)
s.ai_get(1)
+
s.ai_get(1)</syntaxhighlight>
</syntaxhighlight>
      
=== Python using WebSocket ===
 
=== Python using WebSocket ===
29 917

modifications

Menu de navigation