adafruit / Adafruit_IO_Python

Adafruit IO Python Client Library
Other
225 stars 99 forks source link

Compatibility Issue with Latest paho-mqtt Version and Adafruit_IO MQTT_Client Constructor #152

Closed thelizri closed 7 months ago

thelizri commented 8 months ago
tyeth commented 8 months ago

Thanks for reporting this. The current plan is to accept v1 compatibility and release a minor version increment. Then eventually updating the function signatures inline with https://github.com/eclipse/paho.mqtt.python/pull/802/files and doing a major version change.

edelmanng commented 8 months ago

A hack that worked for me was to change Adafruit_IO/mqtt_client.py to

> 63c63
> <         self._client = mqtt.Client()
> ---
> >         self._client = mqtt.Client(mqtt.CallbackAPIVersion.VERSION1)
> 

Would not recommend it, but worked for me.