Open GNITOAHC opened 3 months ago
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
"CallbackAPIVersion" is not exported from module "paho.mqtt.client"
CallbackAPIVersion
paho.mqtt.enums
+from paho.mqtt.enums import CallbackAPIVersion -mqttc = mqtt.Client(mqtt.CallbackAPIVersion.VERSION2) +mqttc = mqtt.Client(CallbackAPIVersion.VERSION2)
Running README sample will occer this error:
"CallbackAPIVersion" is not exported from module "paho.mqtt.client"
It can be fixed by importingCallbackAPIVersion
frompaho.mqtt.enums