Skip to content

About

Tools using the websocket protocol to communicate with nodes

Resources

Stars

0 stars

Watchers

10 watching

Forks

Repository files navigation

IoT-LAB websocket tools

CI

This application provides a redirection mecanism between the TCP server running on an IoT-LAB node to websockets clients.

The websocket clients can be started from a web page thus this application allows interacting with the serial port of an IoT-LAB node from a browser.

The application supports Python 3.6+.

Installation

Install using pip:

pip install . --pre

How to use

  • Start the websocket server from the command line:

    iotlab-websocket-service --use-local-api --token token
  • Start the websocket client:

    iotlab-websocket-client --insecure --api-protocol http  --node localhost.local --exp-id 123

Benchmark

benchmarks/handshake.py measures how long websockets opened together take to be accepted, with a fake REST API answering after a given delay:

python benchmarks/handshake.py --api-delay 2 --mode same

--mode same opens the websockets for the nodes of one experiment, --mode distinct opens each websocket for its own experiment.

About

Tools using the websocket protocol to communicate with nodes

Resources

Stars

0 stars

Watchers

10 watching

Forks

Releases

Packages

Used by

Contributors

Languages