pylab_ml.common.mqtt_client

This script contains a MQTT client class that can be used to communicate with a MQTT broker. The MQTT client class uses the paho-mqtt library to handle the communication.

Created on Tue Feb 18 09:52:09 2020

@author: Zlin526F

Bugs:

wenn device ohne close in spyder beendet wird, so ist thread mqtt_deviceattributes._mqtt_message weiterhin aktiv

todo:

Classes

mqtt_deviceattributes()

Handle MQTT messages for the instrument (=devices is 'transmitter').

mqtt_displayattributes(client, message_client)

MQTT messages for display and controlling (='receiver').

mqtt_init(*args, **kwargs)

Initialise the mqtt connection and provide functions for the communication.

mqtt_signal

Class for communicate with mqtt messages .

mylogger([output, enable, parent])

Class for logging messages.