From 791d0834b9ecdb9f5db40b6bdc1ed95bd67651f2 Mon Sep 17 00:00:00 2001 From: BluemediaGER Date: Sat, 20 Apr 2024 17:35:52 +0200 Subject: [PATCH] Add MeterValues handler --- app/ocpp_proto/chargepoint.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/ocpp_proto/chargepoint.py b/app/ocpp_proto/chargepoint.py index 51e125d..8499762 100644 --- a/app/ocpp_proto/chargepoint.py +++ b/app/ocpp_proto/chargepoint.py @@ -145,6 +145,10 @@ class ChargePoint(cp): id_token_info = await self.__get_id_token_info(id_token) return call_result.AuthorizePayload(id_token_info) + @on(Action.MeterValues) + async def on_meter_values(self, **kwargs): + return call_result.MeterValuesPayload() + @on(Action.TransactionEvent) async def on_transaction_event( self,