GoogleCloudPlatform / iot-device-sdk-embedded-c

Cloud IoT Device SDK for Connectivity to IoT Core.
Other
246 stars 81 forks source link

How to recover the connection if the ESP32 lost WiFi? #96

Open giovannyrodriguez opened 4 years ago

giovannyrodriguez commented 4 years ago

I am using ESP32 to post telemetry but when I turn off the Wi-Fi signal, I never reconnect the sdk. The solution is to use iotc_connect () or that another way could exist.

The error message is reason 12

Thanks for the support