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:
tablatronix
2024-02-16 22:07:21 -06:00
parent 45675eae3e
commit d8f8d5478a
+5
View File
@@ -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),"");