mqtt cpu load

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
seersucker
Normal user
Posts: 24
Joined: 11 May 2020, 17:01

mqtt cpu load

#1 Post by seersucker » 02 Dec 2023, 17:04

Easy_5 mqtt bad.jpg
Easy_5 mqtt bad.jpg (20.73 KiB) Viewed 1911 times
ESP_Easy_5 mqtt ok.jpg
ESP_Easy_5 mqtt ok.jpg (20.76 KiB) Viewed 1911 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?

User avatar
Ath
Normal user
Posts: 3522
Joined: 10 Jun 2018, 12:06
Location: NL

Re: mqtt cpu load

#2 Post by Ath » 02 Dec 2023, 19:29

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.
/Ton (PayPal.me)

seersucker
Normal user
Posts: 24
Joined: 11 May 2020, 17:01

Re: mqtt cpu load

#3 Post by seersucker » 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.

TD-er
Core team member
Posts: 8756
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: mqtt cpu load

#4 Post by TD-er » 02 Dec 2023, 23:38

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 ;)

Post Reply

Who is online

Users browsing this forum: No registered users and 40 guests