Open PiotrNomad opened 3 months ago
When I change theline 254 from: client = paho.Client(client_id="", userdata=None, protocol=paho.MQTTv5) to: client = paho.Client(paho.CallbackAPIVersion.VERSION1, client_id="", userdata=None, protocol=paho.MQTTv5) it works :)
Thanks I'll take a look once I have finished testing the next release of Allsky
Describe the bug When trying to publish data to MQTT broker the module throws the exception in allsky.log: ERROR: Module allsky_publishdata.py failed on line 224 - Client.init() missing 1 required positional argument: 'callback_api_version' Nothing beeing published to MQTT.
To Reproduce Steps to reproduce the behaviour:
Expected behaviour No error in log data been published
Allsky Information:
Additional context It seams thst this is typical behavior on BookWorm Rasbian. I had the same issue with my code and solved it by: client = paho.Client(paho.CallbackAPIVersion.VERSION1)