unide.python

时间:2021-05-17 09:34:05
【文件属性】:
文件名称:unide.python
文件大小:66KB
文件格式:ZIP
更新时间:2021-05-17 09:34:05
Python Unide Python 该Python软件包是一部分,并提供了用于生成,解析和验证PPMP有效负载的API。 PPMP, 是一种简单的,基于JSON的协议,用于定义的(工业)物联网应用中的消息有效负载。 Unide网站上提供了其他编程语言的实现。 Python实现的重点是易于实现后端实现,工具和PPMP应用程序原型。 只需几行代码即可生成简单的有效负载并使用通过MQTT发送该有效负载: import unide import paho.mqtt.client as mqtt client = mqtt.Client() client.connect("localhost", 1883, 60) device = unide.Device("Device-001") measurement = device.measurement(temperature=36.7) client.
【文件预览】:
unide.python-master
----setup.py(2KB)
----.gitignore(115B)
----CHANGES(51B)
----Makefile(2KB)
----src()
--------unide()
----.travis.yml(98B)
----MANIFEST.in(249B)
----samples()
--------mqtt.py(1KB)
--------rest.py(354B)
--------mqtt_consumer.py(1KB)
----doc()
--------Makefile(617B)
--------index.rst(387B)
--------conf.py(5KB)
--------_static()
--------intro.rst(27B)
--------make.bat(803B)
--------guide.rst(9KB)
--------apiref.rst(633B)
----setup.cfg(98B)
----LICENSE.txt(11KB)
----README.rst(3KB)
----VERSION(6B)
----tests()
--------message.json(895B)
--------test_message.py(4KB)
--------process.json(3KB)
--------measurement.json(1KB)
--------invalid.json(916B)
--------test_measurement.py(5KB)
--------schemata()
--------test_schema.py(4KB)
--------test_process.py(4KB)
--------test_samples.py(2KB)
----CONTRIBUTING.rst(5KB)
----additional.txt(80B)
----.pylintrc(14KB)
----tools.txt(144B)
----.flake8(72B)
----tox.ini(98B)

网友评论