Skip to main content

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


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.1.1.tar.gz (8.0 kB view details)

Uploaded Source

File details

Details for the file iotlabwscli-0.1.1.tar.gz.

File metadata

  • Download URL: iotlabwscli-0.1.1.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

Hashes for iotlabwscli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0935f4ebd91dd9d17f03bd14c2db105c528b747fa640b1f9886ef1c503300b41
MD5 bc3986e68de7a8c9088e4438aea0581d
BLAKE2b-256 33c8018611c23c1fb35530a563b8e2a6c58f678fd3dfeabe3dfbfa861db252f8

See more details on using hashes here.

Supported by

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