Page 1 of 1

How to handle NETWORK_RECONNECT_TIMED_OUT_ERROR in esp-aws-iot

Posted: Tue Mar 22, 2022 7:53 am
by MaazSk
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!