You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prior to this change, BootWiFi::boot would hang on m_completeSemaphore.wait("boot") if WiFi::connectAP received SYSTEM_EVENT_STA_DISCONNECTED. This commit changes 2 items 1) after calling m_wifi.connectAP, calls m_completeSemaphore.give() to ensure that we dont hang 2) BootWiFi::boot returns ESP_OK if it successfully receives a SYSTEM_EVENT_STA_GOT_IP event. Otherwise it returns the wifi_err_reason_t so that the programmer can then handle it in a distinct manner.
m_pBootWiFi->m_apConnectionStatus = ESP_OK; // Set the status to ESP_OK
246
247
m_pBootWiFi->m_completeSemaphore.give(); // If we got an IP address, then we can end the boot process.
247
248
ESP_LOGD("BootWifiEventHandler", "<< staGotIP");
248
249
return ESP_OK;
@@ -255,6 +256,11 @@ class BootWifiEventHandler: public WiFiEventHandler {
255
256
256
257
/**
257
258
* Boot WiFi
259
+
*
260
+
* @brief Get connected to WiFi
261
+
*
262
+
* @detailed If SSID & Password were previously saved, connect to the AP. Otherwise become an AP and start an HTTP server so that the user can set SSID & Password - then save it.
0 commit comments