MQTT Hub/Gateway

I had a lot of problems on HP23. The MQTT hub was sending a massive amount of devices to MQTT broker at start up. This caused the MQTT client to crash due to CPU usage and the MQTT hub due to memory usage.
Only every 10th ot 20th app start was running to the end.

As solution I added an app setting to the MQTT hub app to define a send delay (in ms). The possibility was already in the code, but nut customizeable via app settings.
This way the send process gets extended. It takes longer until all devices are synced, but the CPU load is nearly 0% instead of 100% before.

If someone has similar issues on HP23, this setting could help.

It’s documented in a pull request.

Hopefully @HarriedeGroot can find some time to merge and provide a test version :slight_smile:

5 Likes