物联网实验室试验台WebSocket命令行客户端

iotlabwscli的Python项目详细描述


PyPI package statusTravis build statusCodecov coverage status

websocket cli tools提供一组用于远程交互和 使用WebSocket协议轻松实现物联网实验室节点。

websocket cli工具可以与 IoT-Lab CLI Tools命令,如 物联网实验室认证和物联网实验室实验。

安装:

你需要Pythonpip。 要安装ws-cli工具,请使用pip(或pip3 for python 3):

$ pip install iotlabwscli --user

示例:

开始一个实验,等待它准备好并连接到串行端口:

$ 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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Spring Websocket处理程序未向所有客户端发布消息   java动态识别base64编码的文件类型   使用有界类型参数的java“两种方法具有相同的擦除”错误   Java中与互斥体相关的多线程问题   华为设备上的java文本对齐问题   java试图运行ant获取错误   java无法从此SPARQL查询中获得任何结果   java有没有人使用过GUTS(GUICE UTILITIES TOOLS SWING)?   在第三方应用程序中打开和关闭的Java程序监视器文件   java Codename One在iOS上保存照片的权限   swing Java程序,使用两个滑块生成两个数字相加   java如何在不安装插件的情况下将lombok jar添加到intellij idea中?   javascript getElementById在IE浏览器中工作,但在iFrame中不工作