How to handle NETWORK_RECONNECT_TIMED_OUT_ERROR in esp-aws-iot
Posted: 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 also my 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!
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
Code: Select all
auto_reconnect
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!