|
@@ -41,7 +41,7 @@ logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
|
41
|
41
|
|
42
|
42
|
class mqtt_client(object):
|
43
|
43
|
def __init__(self, name, host, port=1883, username=None, password=None):
|
44
|
|
- self.__block_add_callbacks__ = False
|
|
44
|
+ self.__block_add_callbacks__ = True
|
45
|
45
|
logger.info("Initiating mqtt client instance")
|
46
|
46
|
self.__callbacks__ = {}
|
47
|
47
|
self.__client__ = paho.Client(name) # create client object
|