MQTT Client of CodeLab Adapter v2.
# Python >= 3.6
pip install codelab_adapter_mqtt_client from codelab_adapter_mqtt_client import AdapterMQTTNodecodelab-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" }
}