framework/st_things: Add canceling logic for trying reconnect the cloud.
The device had tried to connect when it is cut off from WiFi
and It occurred timed-out.
So Now, It doesn't try to connect to sign-up/in when disconnected the Network
and It will try to Sign-Up/In when WiFi are turned up.
@@ -264,6 +264,7 @@ void things_wifi_sta_connected(wifi_manager_result_e res)
void things_wifi_sta_disconnected(void)
{
THINGS_LOG_D(THINGS_INFO, TAG, "T%d --> %s", getpid(), __FUNCTION__);
+ things_wifi_changed_call_func(0, NULL, NULL);
}
void things_wifi_soft_ap_sta_joined(void)
