espressif / esp-aws-iot

AWS IoT SDK for ESP32 based chipsets
Apache License 2.0
266 stars 156 forks source link

wifi disconnect mqtt reconnect mbedtls error (CA-158) #66

Open nzzn opened 3 years ago

nzzn commented 3 years ago

Hi! I tried the example code(https://github.com/espressif/esp-aws-iot/blob/master/examples/subscribe_publish/main/subscribe_publish_sample.c). It wored! but when I turn off the wifi it reboots with "An error occurred in the main loop".

I'd like to make it goes

  1. when wifi's disconnected, don't reboot. keep trying until recoonect.
  2. after wifi's reconnected, then connect to mqtt.

Can anyone provide their feedback on the above issue?

MaazSk commented 2 years ago

Hi, any updates on this issue?