MqttMonitor/MqttProtocols.py

branch
eric7
changeset 123
3d7e63ed4fd1
parent 114
8c0e9e602124
child 131
899c7cb866a2
equal deleted inserted replaced
122:28d69b9e1b6a 123:3d7e63ed4fd1
14 14
15 class MqttProtocols(enum.IntEnum): 15 class MqttProtocols(enum.IntEnum):
16 """ 16 """
17 Class defining the supported MQTT protocol versions. 17 Class defining the supported MQTT protocol versions.
18 """ 18 """
19
19 MQTTv31 = mqtt.MQTTv31 20 MQTTv31 = mqtt.MQTTv31
20 MQTTv311 = mqtt.MQTTv311 21 MQTTv311 = mqtt.MQTTv311
21 MQTTv5 = mqtt.MQTTv5 22 MQTTv5 = mqtt.MQTTv5
23
22 except ImportError: 24 except ImportError:
23 # define the enum with known values 25 # define the enum with known values
24 class MqttProtocols(enum.IntEnum): 26 class MqttProtocols(enum.IntEnum):
25 """ 27 """
26 Class defining the supported MQTT protocol versions. 28 Class defining the supported MQTT protocol versions.
27 """ 29 """
30
28 MQTTv31 = 3 31 MQTTv31 = 3
29 MQTTv311 = 4 32 MQTTv311 = 4
30 MQTTv5 = 5 33 MQTTv5 = 5

eric ide

mercurial