Forum tinycontrol
MQTT and CPU on 100% - Wersja do druku

+- Forum tinycontrol (https://forum.tinycontrol.pl)
+-- Dział: TinyESP (https://forum.tinycontrol.pl/forumdisplay.php?fid=30)
+--- Dział: Problemy z oprogramowaniem i sprzętem (https://forum.tinycontrol.pl/forumdisplay.php?fid=32)
+--- Wątek: MQTT and CPU on 100% (/showthread.php?tid=3164)



MQTT and CPU on 100% - cz147069 - 01-29-2026

Hello,
when I turn on sending to MQTT server, CPU go to 100% usage. Where is problem?


RE: MQTT and CPU on 100% - Wafello3 - 07-21-2026

Check if your loop isn't publishing messages too fast without any delay or sleep, which often maxes out the CPU. Also, make sure you're using asynchronous publishing or a proper keep-alive setting so the MQTT client doesn't block the main thread