python-daly-bms icon indicating copy to clipboard operation
python-daly-bms copied to clipboard

Add loop_start to ensure all messages are published

Open mjrsnyder opened this issue 11 months ago • 0 comments

I was having an issue where I could see all the messages being published in the debug logs but not all the messages made it to the broker. When using the --all flag the first few messages would make it but I would only get down to temperature messages occasionally. The MQTT broker would log Socket error on client <client id>, disconnecting. presumably before the client finished publishing all messages. This was happening over a somewhat compromised WiFi connection on older hardware.

Adding loop_start() resolved the issue for me. I'm now getting all data and I no longer get errors in the broker log.

mjrsnyder avatar Feb 21 '25 23:02 mjrsnyder