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 |