pylab_ml.common.mqtt_client.mqtt_displayattributes

class mqtt_displayattributes(client, message_client, mqtt_receive=None)[source]

Bases: object

mqtt 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}}’

__init__(client, message_client, mqtt_receive=None)[source]

Methods

__init__(client, message_client[, mqtt_receive])

mqtt_add()

Add the modul as member for the mqtt communication.

mqtt_disconnect()

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'>
mqtt_add()[source]

Add the modul as member for the mqtt communication.

mqtt_disconnect()[source]

Remove the modul as member for the mqtt communication.

publish(attr, value)[source]

Send message to broker.

publish_get(instName, function_name)[source]

Publish attribute with value as get.

publish_set(instName, function_name, value)[source]

Publish attribute with value as set.