paho.mqtt.python
paho.mqtt.python copied to clipboard
docs: CallbackAPIVersion is not exported from module paho.mqtt.client
Running README sample will occer this error: "CallbackAPIVersion" is not exported from module "paho.mqtt.client"
It can be fixed by importing CallbackAPIVersion from paho.mqtt.enums
+from paho.mqtt.enums import CallbackAPIVersion
-mqttc = mqtt.Client(mqtt.CallbackAPIVersion.VERSION2)
+mqttc = mqtt.Client(CallbackAPIVersion.VERSION2)