beremiz
Clone
Summary
Browse
Changes
Graph
MQTT: added growing reconnect delay when connecting to broker fails.
py2compat
8 months ago, Tomaz Orac
db17947a30fb
MQTT: added growing reconnect delay when connecting to broker fails.
#!/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"]