Skip to main content

IoT-LAB testbed websocket command-line client

Project description

PyPI package status Travis build status Codecov coverage status

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.


You need python pip. To install ws-cli-tools, use pip (or pip3 for Python 3):

$ pip install iotlabwscli --user


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
$ iotlab-ws
Using custom api_url:
Connected to 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: cmd >
m3-1.saclay: leds > off
m3-1.saclay: cmd > Luminosity measure: 2.4414062 lux

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iotlabwscli-0.2.0.tar.gz (8.2 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page