IoT-LAB testbed websocket command-line client
Project description
Websocket CLI Tools provides a set of commands for interacting remotely and easily with IoT-Lab nodes using the Websosket protocol.
Websocket CLI Tools can be used in conjunction with the IoT-Lab CLI Tools commands like iotlab-auth and iotlab-experiment.
Installation:
You need python pip. To install ws-cli-tools, use pip (or pip3 for Python 3):
$ pip install iotlabwscli --user
Example:
Start an experiment, wait for it to be ready and connect to the serial port:
$ iotlab-experiment submit -d 120 -l saclay,m3,1,tutorial_m3.elf
{
"id": 65535
}
$ iotlab-experiment wait
Waiting that experiment 65535 gets in state Running
"Running"
$ iotlab-ws
Using custom api_url: https://www.iot-lab.info/rest/
Connected to m3-1.saclay
h
m3-1.saclay:
m3-1.saclay:
m3-1.saclay: IoT-LAB Simple Demo program
m3-1.saclay: Type command
m3-1.saclay: h: print this help
m3-1.saclay: t: temperature measure
m3-1.saclay: l: luminosity measure
m3-1.saclay: p: pressure measure
m3-1.saclay: u: print node uid
m3-1.saclay: d: read current date using control_node
m3-1.saclay: s: send a radio packet
m3-1.saclay: b: send a big radio packet
m3-1.saclay: e: toggle leds blinking
m3-1.saclay:
e
m3-1.saclay: cmd >
m3-1.saclay: leds > off
m3-1.saclay:
l
m3-1.saclay: cmd > Luminosity measure: 2.4414062 lux
m3-1.saclay:
^CExiting
0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iotlabwscli-0.1.0.tar.gz.
File metadata
- Download URL: iotlabwscli-0.1.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.4.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/2.7.15+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddc12102d513e7ca9a6ac1503c5de198f2964c0d5971102edaad1dbf32a71739
|
|
| MD5 |
cdd00bd105ee00b82a6be1bd136dfde0
|
|
| BLAKE2b-256 |
eb692f64363b85273329857b6f8f35f9cdbdb4c90e17c94f63fb7cef4cba2d87
|
File details
Details for the file iotlabwscli-0.1.0-py2-none-any.whl.
File metadata
- Download URL: iotlabwscli-0.1.0-py2-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.4.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/2.7.15+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8351a23a00dc3f7482d490d932ac472a84e581d86d7f8a77f6770b09293c1e88
|
|
| MD5 |
781edf9e9e220f6569924b3b1bec1698
|
|
| BLAKE2b-256 |
4326868896e5bc513060d519c15afaeeb182e84749f5df43cef2b0b99bd2f4de
|