Skip to content

Commit

Permalink
added decoding of ContractAuthentication
Browse files Browse the repository at this point in the history
  • Loading branch information
uhi22 committed Dec 2, 2022
1 parent 7bf4ad4 commit a9d30aa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/main_commandlineinterface.c
Expand Up @@ -467,6 +467,15 @@ void translateDocDinToJson(void) {
}
if (dinDoc.V2G_Message.Body.ContractAuthenticationRes_isUsed) {
addMessageName("ContractAuthenticationRes");
translateDinResponseCodeToJson(dinDoc.V2G_Message.Body.ContractAuthenticationRes.ResponseCode);
#define processing dinDoc.V2G_Message.Body.ContractAuthenticationRes.EVSEProcessing
if (processing==dinEVSEProcessingType_Finished) {
addProperty("EVSEProcessing", "Finished");
}
if (processing==dinEVSEProcessingType_Ongoing) {
addProperty("EVSEProcessing", "Ongoing");
}
#undef processing
}

if (dinDoc.V2G_Message.Body.ChargeParameterDiscoveryReq_isUsed) {
Expand Down

0 comments on commit a9d30aa

Please sign in to comment.