mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-04 02:48:13 +10:00
Adds connect status for ambiguous state
Will find a way to clear this up using assumption based on reason codes, wrong password is very ambiguous with PMF and modern APs
This commit is contained in:
@@ -2503,6 +2503,11 @@ void WiFiManager::reportStatus(String &page){
|
||||
str.replace(FPSTR(T_c),"D");
|
||||
str.replace(FPSTR(T_r),FPSTR(HTTP_STATUS_OFFFAIL));
|
||||
}
|
||||
else if(_lastconxresult == WL_CONNECTION_LOST){
|
||||
// connect failed, MOST likely 4WAY_HANDSHAKE_TIMEOUT/incorrect password, state is ambiguous however
|
||||
str.replace(FPSTR(T_c),"D");
|
||||
str.replace(FPSTR(T_r),FPSTR(HTTP_STATUS_OFFFAIL));
|
||||
}
|
||||
else{
|
||||
str.replace(FPSTR(T_c),"");
|
||||
str.replace(FPSTR(T_r),"");
|
||||
|
||||
Reference in New Issue
Block a user