Drolla / WavePlus_Bridge

Airthings Wave Plus Bridge to Wifi/LAN and MQTT
MIT License
21 stars 9 forks source link

Fix hanging on MQTT publish #5

Closed rkoshak closed 2 years ago

rkoshak commented 2 years ago

Only attempt to publish messages when there are messages to send. Apparently calling publish.multiple with an empty list of messages causes the whole program to hanfg.

Fixes #3

Drolla commented 2 years ago

This fix works on my side now for multiple days. The fix is straight forward with no risk that something breaks.