dont' start right away from STA_START, that'll load from nvs

This commit is contained in:
Morgan Allen 2018-10-09 21:07:04 -07:00
parent 1554ec8fa8
commit cda32dd951

View file

@ -52,7 +52,7 @@ static esp_err_t wifi_event_handler(void *ctx, system_event_t *event) {
switch (event->event_id) { switch (event->event_id) {
case SYSTEM_EVENT_STA_START: case SYSTEM_EVENT_STA_START:
ESP_LOGI(TAG, "SYSTEM_EVENT_STA_START"); ESP_LOGI(TAG, "SYSTEM_EVENT_STA_START");
ESP_ERROR_CHECK(esp_wifi_connect()); //ESP_ERROR_CHECK(esp_wifi_connect());
break; break;
case SYSTEM_EVENT_STA_GOT_IP: case SYSTEM_EVENT_STA_GOT_IP:
ESP_LOGI(TAG, "SYSTEM_EVENT_STA_GOT_IP"); ESP_LOGI(TAG, "SYSTEM_EVENT_STA_GOT_IP");