Skip to content

Conversation

@GNITOAHC
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant