Modifications

Sauter à la navigation Sauter à la recherche
47 octets ajoutés ,  8 septembre 2017 à 17:11
Ligne 125 : Ligne 125 :  
</syntaxhighlight>
 
</syntaxhighlight>
   −
=== Perl using JsonRPC ===
+
=== Perl en utilisant JsonRPC ===
 
+
Voici un exemple simple permettant de contrôler UniPi via RPC en utilisant JSON::RPC::Client;
A simple example of controlling the UniPi via RPC use JSON::RPC::Client;
      
  <nowiki>use JSON::RPC::Client;
 
  <nowiki>use JSON::RPC::Client;
Ligne 137 : Ligne 136 :  
$client->relay_set(1,1);</nowiki>
 
$client->relay_set(1,1);</nowiki>
   −
There is also a [https://metacpan.org/pod/AnyEvent::WebSocket::Client websocket client library for Perl] to get more control.
+
Il y a également une [https://metacpan.org/pod/AnyEvent::WebSocket::Client bibliothèque websocket Perl client] pour obtenir plus de contrôle.
    
== Liste des périphériques disponibles ==
 
== Liste des périphériques disponibles ==
29 917

modifications

Menu de navigation