Modifications
Sauter à la navigation
Sauter à la recherche
← Modification précédente
Modification suivante →
UniPi-EVOK-API
(voir la source)
Version du 8 septembre 2017 à 17:11
47 octets ajoutés
,
8 septembre 2017 à 17:11
→Perl using JsonRPC
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 ==
Admin
Bureaucrates
,
Administrateurs
29 917
modifications
Menu de navigation
Outils personnels
Se connecter
Espaces de noms
Page
Discussion
Variantes
Affichages
Lire
Voir le texte source
Voir l’historique
Plus
Rechercher
Navigation
ARDUINO
RASPBERRY-PI
[:: PI Hacking ::]
Particle.IO
Micro Python
Imprimante 3D
Actualités
Modifications récentes
Page au hasard
Aide
Outils
Pages spéciales
Version imprimable