Skip to content

Commit

Permalink
Adds connect status for ambiguous state
Browse files Browse the repository at this point in the history
Will find a way to clear this up using assumption based on reason codes, wrong password is very ambiguous with PMF and modern APs
  • Loading branch information
tablatronix committed Feb 17, 2024
1 parent 45675ea commit d8f8d54
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions WiFiManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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),"");
Expand Down

0 comments on commit d8f8d54

Please # to comment.