How to handle NETWORK_RECONNECT_TIMED_OUT_ERROR in esp-aws-iot

MaazSk
Posts: 6
Joined: Mon Dec 02, 2019 5:37 am

How to handle NETWORK_RECONNECT_TIMED_OUT_ERROR in esp-aws-iot

Postby MaazSk » Tue Mar 22, 2022 7:53 am

Hello Everyone,

I am using esp-aws-iot sdk and my esp-idf version is v4.3. I am facing a issue that when there is no internet for a prolonged period of time my mqtt connection is broken and when I try to connect it manually it gives me this error

Code: Select all

NETWORK_RECONNECT_TIMED_OUT_ERROR
also my

Code: Select all

auto_reconnect
is enabled but after trying for a long time I am unable to connect with MQTT.

What do I need to do?
Should I destroy the connection and make another connection?

Or there is another way

Any help suggestion would be helpful

Thank you!

Who is online

Users browsing this forum: Google [Bot], Usama Masood and 95 guests