Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 747 Bytes

readme.md

File metadata and controls

31 lines (25 loc) · 747 Bytes

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" }
}