beremiz
Clone
Summary
Browse
Changes
Graph
MQTT: WIP. Added handling of received messages (subscriptions)
py2compat
23 months ago, Edouard Tisserant
1248cf47e7cf
MQTT: WIP. Added handling of received messages (subscriptions)
Dropped perfect hash in favor of bisection
Also fixed indentation (tabs)
#!/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"]