beremiz
Clone
Summary
Browse
Changes
Graph
MQTT: WIP, re-organized disconnection handling, now keep track of connection status and reconnect accordingly.
py2compat
22 months ago, Edouard Tisserant
560ab28e43e1
MQTT: WIP, re-organized disconnection handling, now keep track of connection status and reconnect accordingly.
This fixes bug with non-reconnecting to broker when having no published variables.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# See COPYING.Runtime file for copyrights details.
LogLevels = ["CRITICAL", "WARNING", "INFO", "DEBUG"]
LogLevelsCount = len(LogLevels)
LogLevelsDict = dict(zip(LogLevels, range(LogLevelsCount)))
LogLevelsDefault = LogLevelsDict["DEBUG"]