esp32 mqtt and wifi connection

canerakcasu
Posts: 2
Joined: Wed Oct 08, 2025 10:50 am

esp32 mqtt and wifi connection

Postby canerakcasu » Wed Oct 08, 2025 10:55 am

i have node-red connected esp devices(10-15pcs)

i have wifi and mqtt reconnect function but i have kinda weird issue

while devices are on, if i turn off router and turn on quick, on router its says my esp devices are connected(shows 10-20 Mbit/s) normalls its 150 Mbit/s

and on device serial monitors nothing shows about wifi, only i am keep getting mqtt rc2 error,(i have 5 sec reconnect loop) if i reboot device by button then everything turns fine,
is anyone know how i can solve it?

euripedes
Espressif staff
Espressif staff
Posts: 8
Joined: Tue May 15, 2018 12:04 pm

Re: esp32 mqtt and wifi connection

Postby euripedes » Wed Oct 08, 2025 2:25 pm

Hi,
If you let the connection up, do the speed recovers over time?

And could you clarify about your network, you turn the wifi down and there is no disconnection on esp side?

The scenario you are describing looks like the WIFI is available but there is no connection to the broker.

canerakcasu
Posts: 2
Joined: Wed Oct 08, 2025 10:50 am

Re: esp32 mqtt and wifi connection

Postby canerakcasu » Fri Oct 10, 2025 8:08 am

we are building professional rooms with esp devices and controlled by node-red. i want to keep stay online and staying alive on mqtt broker. i have keep alive callback commands on mqtt, if device lost connection somehow then sometimes its keep offline this is my main problem.
devices(esp32 and barerly esp8266 need to stay on network even if wifi lost for long time and appear after long time esp must connect back auto.)

Who is online

Users browsing this forum: Bytespider, Google [Bot], meta-externalagent, Semrush [Bot] and 18 guests