Page 1 of 1

mqtt cpu load

Posted: 02 Dec 2023, 17:04
by seersucker
Easy_5 mqtt bad.jpg
Easy_5 mqtt bad.jpg (20.73 KiB) Viewed 2270 times
ESP_Easy_5 mqtt ok.jpg
ESP_Easy_5 mqtt ok.jpg (20.76 KiB) Viewed 2270 times
Hello, I'm using an esp-32s3 flashed with 20230601 - Mega32-s3.
I'm attempting to use mqtt to send a switch state, and it works fine.

However, if the remote Broker is offline when the esp boots, the load goes to 100% if the mqtt controller is enabled.
Also seen on a regular esp-32.

Any way to stop this happening?

Re: mqtt cpu load

Posted: 02 Dec 2023, 19:29
by Ath
There seems to be an issue with the http-client library, that it keeps polling if the connection is lost, causing high CPU-load. It's not yet clear if we can do something about that.

Re: mqtt cpu load

Posted: 02 Dec 2023, 21:34
by seersucker
Thanks for responding, I just wanted to make sure that I wasn't doing something silly... ;)
It shouldn't normally be a problem.

Re: mqtt cpu load

Posted: 02 Dec 2023, 23:38
by TD-er
seersucker wrote: 02 Dec 2023, 21:34 Thanks for responding, I just wanted to make sure that I wasn't doing something silly... ;)
It shouldn't normally be a problem.
Well if it isn't a problem, then please do something silly ;)