wotpy.protocols.mqtt.enums

Enumeration classes related to the MQTT protocol binding.

Classes

MQTTCodesACK Enumeration of MQTT ACK codes.
MQTTCommandCodes Enumeration of MQTT packet types.
MQTTQoSLevels Enumeration of MQTT Quality of Service levels.
MQTTSchemes Enumeration of MQTT schemes.
MQTTVocabularyKeys Enumeration of terms that form the MQTT vocabulary that may appear in TD Form elements.
class wotpy.protocols.mqtt.enums.MQTTCodesACK

Bases: wotpy.utils.enums.EnumListMixin

Enumeration of MQTT ACK codes.

CON_OK = 0
SUB_ERROR = 128
class wotpy.protocols.mqtt.enums.MQTTCommandCodes

Bases: wotpy.utils.enums.EnumListMixin

Enumeration of MQTT packet types.

PUBLISH = 3
SUBSCRIBE = 8
UNSUBSCRIBE = 10
class wotpy.protocols.mqtt.enums.MQTTQoSLevels

Bases: wotpy.utils.enums.EnumListMixin

Enumeration of MQTT Quality of Service levels.

AT_LEAST_ONCE = 1
EXACTLY_ONCE = 2
FIRE_FORGET = 0
class wotpy.protocols.mqtt.enums.MQTTSchemes

Bases: wotpy.utils.enums.EnumListMixin

Enumeration of MQTT schemes.

MQTT = 'mqtt'
class wotpy.protocols.mqtt.enums.MQTTVocabularyKeys

Bases: wotpy.utils.enums.EnumListMixin

Enumeration of terms that form the MQTT vocabulary that may appear in TD Form elements.

COMMAND_CODE = 'mqtt:commandCode'
OPTIONS = 'mqtt:options'
OPTION_NAME = 'mqtt:optionName'
OPTION_NAME_DUP = 'mqtt:dup'
OPTION_NAME_QOS = 'mqtt:qos'
OPTION_NAME_RETAIN = 'mqtt:retain'
OPTION_VALUE = 'mqtt:optionValue'