Skip to content

docs: CallbackAPIVersion is not exported from module paho.mqtt.client#852

Open
GNITOAHC wants to merge 1 commit into
eclipse-paho:masterfrom
GNITOAHC:master
Open

docs: CallbackAPIVersion is not exported from module paho.mqtt.client#852
GNITOAHC wants to merge 1 commit into
eclipse-paho:masterfrom
GNITOAHC:master

Conversation

@GNITOAHC
Copy link
Copy Markdown

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