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