|
|
|
|
@ -50,6 +50,7 @@ |
|
|
|
|
|
|
|
|
|
#define EAP_PEAP 1 /* WPA2 Enterprise with password and no certificate */ |
|
|
|
|
#define EAP_TTLS 2 /* TLS method */ |
|
|
|
|
#define TAG "WiFi" /* tag for logging with ESP_LOG */ |
|
|
|
|
|
|
|
|
|
#include "pwd.h" /* local file with login information */ |
|
|
|
|
|
|
|
|
|
@ -253,7 +254,7 @@ static void WiFiTask(void *pv) { |
|
|
|
|
#endif |
|
|
|
|
if (state == WIFI_STATE_INIT && isConnected) { /* first connection */ |
|
|
|
|
state = WIFI_STATE_CONNECTED; |
|
|
|
|
//ESP_LOGI(TAG, "WiFi is connected.");
|
|
|
|
|
ESP_LOGI(TAG, "WiFi is connected."); |
|
|
|
|
if (isConnected) { |
|
|
|
|
APP_WiFi_PrintIP(); |
|
|
|
|
} |
|
|
|
|
@ -270,7 +271,7 @@ static void WiFiTask(void *pv) { |
|
|
|
|
McuLog_error("failed getting SNTP time."); |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
#if 0 |
|
|
|
|
#if 1 |
|
|
|
|
} else if (isConnected) { |
|
|
|
|
ESP_LOGI(TAG, "still connected."); |
|
|
|
|
APP_WiFi_PrintIP(); |
|
|
|
|
|