pylab_ml.common.mqtt_client.mqtt_displayattributes
- class mqtt_displayattributes(client, message_client, mqtt_receive=None)[source]
Bases:
objectmqtt messages for display and controlling (=’receiver’).
docu muss überarbeitet werden:
- publish:
- topic for display application:
f’{TOPIC_PREFIX}/’Hostname’/{TOPIC_CONTROL}
- payload:
f’{“instrumentname”: {“type”: “set/get”, “cmd”: “function/attributename”, “payload”: yourvalues}}’
Methods
__init__(client, message_client[, mqtt_receive])mqtt_add()Add the modul as member for the mqtt communication.
Remove the modul as member for the mqtt communication.
mqtt_receive(topic, msg)publish(attr, value)Send message to broker.
publish_get(instName, function_name)Publish attribute with value as get.
publish_set(instName, function_name, value)Publish attribute with value as set.
- json = <module 'json' from '/home/runner/miniconda3/envs/test/lib/python3.9/json/__init__.py'>