workaround: in SessionSetupResponse, treat ok as valid

This commit is contained in:
uhi22 2023-07-03 20:28:10 +02:00
parent 4c862155a8
commit 5c44e17615

View file

@ -286,7 +286,10 @@ class fsmPev():
self.sessionId = strSessionId
except:
self.addToTrace("ERROR: Could not decode the sessionID")
if (strResponseCode!="OK_NewSessionEstablished"):
if ((strResponseCode!="OK_NewSessionEstablished") and (strResponseCode!="OK")):
# According to the standard, the only valid response code is OK_NewSessionEstablished.
# But the ABB chargers use "OK", so we need to accept this, too. Discussed
# here: https://openinverter.org/forum/viewtopic.php?p=58399#p58399
self.addToTrace("Wrong response code. Aborting.")
self.enterState(stateUnrecoverableError)
return