Skip to content

CodeLabClub/codelab_adapter_mqtt_client

Repository files navigation

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

Releases

No releases published

Packages

No packages published