Skip to content
mqtt client for CodeLab_Adapter v2.
Python Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
codelab_adapter_mqtt_client
docs
examples
tests
.editorconfig
.gitignore 1st Aug 9, 2019
.travis.yml 1st Aug 9, 2019
AUTHORS.rst
CONTRIBUTING.rst 1st Aug 9, 2019
HISTORY.rst
LICENSE 1st Aug 9, 2019
MANIFEST.in
Makefile 1st Aug 9, 2019
README.rst
readme.md fix bug in message Aug 9, 2019
requirements_dev.txt 1st Aug 9, 2019
setup.cfg 1st Aug 9, 2019
setup.py
tox.ini 1st Aug 9, 2019

readme.md

codelab_adapter_mqtt_client

MQTT Client of CodeLab Adapter v2.

Install

# Python >= 3.6
pip install codelab_adapter_mqtt_client 

Usage

from codelab_adapter_mqtt_client import AdapterMQTTNode

example

monitor.py

tools(for debugging)

codelab-mqtt-monitor # subscribes to all messages and print both topic and payload.
codelab-mqtt-trigger # pub the message in json file(`/tmp/message.json`).

/tmp/message.json:

{
    "zmq_topic": "core/extensions/operate",
    "zmq_payload": { "content": "start", "extension_name": "extension_eim" }
}
You can’t perform that action at this time.