example: do not check the return value of esp_wifi_connect()

This commit is contained in:
xiehang
2021-01-15 19:40:25 +08:00
parent 7e63061fae
commit 2f4ef71beb
13 changed files with 22 additions and 22 deletions

View File

@@ -153,7 +153,7 @@ static esp_err_t event_handler(void *ctx, system_event_t *event)
switch (event->event_id) {
case SYSTEM_EVENT_STA_START:
ESP_LOGI(TAG, "SYSTEM_EVENT_STA_START");
ESP_ERROR_CHECK(esp_wifi_connect());
esp_wifi_connect();
break;
case SYSTEM_EVENT_STA_GOT_IP:
ESP_LOGI(TAG, "SYSTEM_EVENT_STA_GOT_IP");
@@ -162,7 +162,7 @@ static esp_err_t event_handler(void *ctx, system_event_t *event)
break;
case SYSTEM_EVENT_STA_DISCONNECTED:
ESP_LOGI(TAG, "SYSTEM_EVENT_STA_DISCONNECTED");
ESP_ERROR_CHECK(esp_wifi_connect());
esp_wifi_connect();
xEventGroupClearBits(wifi_event_group, CONNECTED_BIT);
break;
default: