From da9c1cbadb1689d3a816186fed84848348c2e7f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piet=20G=C3=B6mpel?= <37657534+Pietfried@users.noreply.github.com> Date: Fri, 28 Jun 2024 15:03:14 +0200 Subject: [PATCH] initiate DEAUTHORIZED event in OCPP201 in case reason is StoppedByEv (#748) Signed-off-by: pietfried Co-authored-by: Kai Hermann --- modules/OCPP201/OCPP201.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/OCPP201/OCPP201.cpp b/modules/OCPP201/OCPP201.cpp index 0158d44e0..0682971df 100644 --- a/modules/OCPP201/OCPP201.cpp +++ b/modules/OCPP201/OCPP201.cpp @@ -22,6 +22,7 @@ TxEvent get_tx_event(const ocpp::v201::ReasonEnum reason) { case ocpp::v201::ReasonEnum::Remote: case ocpp::v201::ReasonEnum::Local: case ocpp::v201::ReasonEnum::MasterPass: + case ocpp::v201::ReasonEnum::StoppedByEV: return TxEvent::DEAUTHORIZED; case ocpp::v201::ReasonEnum::EVDisconnected: return TxEvent::EV_DISCONNECTED;