CALL esp_wifi_connect! You know.... TO CONNECT

This commit is contained in:
Morgan Allen 2018-09-21 23:22:18 -07:00
parent c4913a64f7
commit 7e6c9036b4
1 changed files with 2 additions and 1 deletions

View File

@ -76,7 +76,6 @@ static esp_err_t wifi_event_handler(void *ctx, system_event_t *event) {
xEventGroupSetBits(wm_event_group, WIFI_IDLE);
} else {
wifi_manager_connect();
ESP_ERROR_CHECK(esp_wifi_connect());
}
break;
default:
@ -119,6 +118,8 @@ void wifi_manager_connect() {
ESP_LOGI(TAG, "wifi_init_sta finished.");
ESP_LOGI(TAG, "connect to ap SSID:%s password:%s",
wifi_config.sta.ssid, wifi_config.sta.password);
ESP_ERROR_CHECK(esp_wifi_connect());
};
void wifi_manager_main_loop() {