-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Description
I have here 3 different ESP32 WROOM boards like a NodeMCU32S
I could connect to the Enterprise WIFI a month ago. But now all of them fail to connect.
Im using PlatformIO in my project, but also the simple WPA-Enterprise Example compiled and uploaded with Arduino IDE fails to connect now.
I don't have the network config in my hands, I don't know what could have changed there.
Description:
I can't connect to the enterprise WPA2 network with MS-CHAPv2 Authentication.
I don't use a certificate, it was working like this for about 2 weeks and stopped working. No other device has issues with this WIFI.
Hardware:
Board: nodemcu-32s
Core Installation version: 1.12.0
IDE name: Arduino IDE & Platform.io
Flash Frequency: 80MHz
PSRAM enabled: no
Upload Speed: 115200
Computer OS: Windows 10
Sketch:
//Change the code below by your sketch
#include <Arduino.h>
void setup() {
Serial.begin(115200);
enableLoopWDT();
Config config("/config.json");
String ssid = "sasdas";
String username = "ASAS";
String password = "SASAAS";
esp_log_level_set("wifi", ESP_LOG_VERBOSE); // enable WARN logs from WiFi stack
WiFi.persistent(false);
WiFi.setAutoConnect(false);
// WiFi.disconnect(false, true);
WiFi.mode(WIFI_STA);
Serial.println( WiFi.scanNetworks());
esp_wifi_sta_wpa2_ent_set_identity((uint8_t *)username.c_str(), strlen(username.c_str()));
esp_wifi_sta_wpa2_ent_set_username((uint8_t *)username.c_str(), strlen(username.c_str()));
esp_wifi_sta_wpa2_ent_set_password((uint8_t *)password.c_str(), strlen(password.c_str()));
esp_wpa2_config_t wpae_config = WPA2_CONFIG_INIT_DEFAULT();
esp_wifi_sta_wpa2_ent_enable(&wpae_config);
WiFi.begin(ssid.c_str());
uint8_t wifi_try = 0;
while (WiFi.status() != WL_CONNECTED)
{
disableLoopWDT();
enableLoopWDT();
yield();
delay(500);
Serial.print(".");
if (wifi_try > 100)
{
Serial.print("sleep");
hard_restart();
}
wifi_try++;
}
}
void loop() {
}Debug Messages:
I (417) wifi: wifi driver task: 3ffb5d54, prio:23, stack:3584, core=0
I (941) wifi: wifi firmware version: 7997e4b
I (942) wifi: config NVS flash: enabled
I (942) wifi: config nano formating: disabled
I (942) wifi: Init dynamic tx buffer num: 32
I (946) wifi: Init data frame dynamic rx buffer num: 32
I (951) wifi: Init management frame dynamic rx buffer num: 32
I (957) wifi: Init management short buffer num: 32
I (961) wifi: Init static rx buffer size: 1600
I (966) wifi: Init static rx buffer num: 16
I (969) wifi: Init dynamic rx buffer num: 32
I (1034) wifi: mode : sta (30:ae:a4:26:af:f4)
8
I (3049) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (3050) wifi: state: init -> auth (b0)
I (3052) wifi: state: auth -> assoc (0)
I (3056) wifi: state: assoc -> run (10)
E (3110) wpa: Method private structure allocated failure
I (417) wifi: wifi driver task: 3ffb5d54, prio:23, stack:3584, core=0
I (941) wifi: wifi firmware version: 7997e4b
I (942) wifi: config NVS flash: enabled
I (942) wifi: config nano formating: disabled
I (942) wifi: Init dynamic tx buffer num: 32
I (946) wifi: Init data frame dynamic rx buffer num: 32
I (951) wifi: Init management frame dynamic rx buffer num: 32
I (956) wifi: Init management short buffer num: 32
I (961) wifi: Init static rx buffer size: 1600
I (966) wifi: Init static rx buffer num: 16
I (969) wifi: Init dynamic rx buffer num: 32
I (1032) wifi: mode : sta (30:ae:a4:26:af:f4)
8
I (3047) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (3048) wifi: state: init -> auth (b0)
I (3052) wifi: state: auth -> assoc (0)
I (3056) wifi: state: assoc -> run (10)
..........I (8061) wifi: state: run -> init (3c0)
I (8062) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (8062) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (8064) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (8069) wifi: state: init -> auth (b0)
..I (9073) wifi: state: auth -> init (200)
I (9074) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
.I (9377) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (9378) wifi: state: init -> auth (b0)
..I (10378) wifi: state: auth -> init (200)
I (10379) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (10379) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (10382) wifi: state: init -> auth (b0)
..I (11386) wifi: state: auth -> init (200)
I (11386) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (11689) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (11690) wifi: state: init -> auth (b0)
..I (12691) wifi: state: auth -> init (200)
I (12691) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (12692) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (12694) wifi: state: init -> auth (b0)
..I (13698) wifi: state: auth -> init (200)
I (13699) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
.I (14001) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (14002) wifi: state: init -> auth (b0)
..I (15003) wifi: state: auth -> init (200)
I (15004) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (15004) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (15006) wifi: state: init -> auth (b0)
..I (16010) wifi: state: auth -> init (200)
I (16011) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
.I (16314) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (16314) wifi: state: init -> auth (b0)
..I (17315) wifi: state: auth -> init (200)
I (17316) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (17316) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (17319) wifi: state: init -> auth (b0)
..I (18322) wifi: state: auth -> init (200)
I (18323) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (18626) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (18627) wifi: state: init -> auth (b0)
..I (19627) wifi: state: auth -> init (200)
I (19628) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (19628) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (19631) wifi: state: init -> auth (b0)
..I (20635) wifi: state: auth -> init (200)
I (20635) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
.I (20938) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (20939) wifi: state: init -> auth (b0)
..I (21940) wifi: state: auth -> init (200)
I (21940) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (21941) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (21943) wifi: state: init -> auth (b0)
..I (22947) wifi: state: auth -> init (200)
I (22948) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
.I (23250) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (23251) wifi: state: init -> auth (b0)
..I (24252) wifi: state: auth -> init (200)
I (53007) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
.I (53309) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (53310) wifi: state: init -> auth (b0)
....