From 49d3cee185dee9f7f83e58cb830d883295deddee Mon Sep 17 00:00:00 2001 From: "K. Shankari" Date: Sat, 16 Nov 2024 18:58:56 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Enable=20proper=20handling=20of?= =?UTF-8?q?=20the=20ChargingProfileResponse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Which is currently a NOP, but we want to register it in the map so that it doesn't error out. This fixes https://github.com/EVerest/everest-demo/issues/79#issuecomment-2480806268 --- manager/handlers/ocpp201/routing.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/manager/handlers/ocpp201/routing.go b/manager/handlers/ocpp201/routing.go index 06b0d2f..6bf4bb8 100644 --- a/manager/handlers/ocpp201/routing.go +++ b/manager/handlers/ocpp201/routing.go @@ -278,6 +278,13 @@ func NewRouter(emitter transport.Emitter, ResponseSchema: "ocpp201/UnclockConnectorResponse.json", Handler: UnlockConnectorResultHandler{}, }, + "SetChargingProfile": { + NewRequest: func() ocpp.Request { return new(ocpp201.SetChargingProfileRequestJson) }, + NewResponse: func() ocpp.Response { return new(ocpp201.SetChargingProfileResponseJson) }, + RequestSchema: "ocpp201/SetChargingProfileRequest.json", + ResponseSchema: "ocpp201/SetChargingProfileResponse.json", + Handler: SetChargingProfileResultHandler{}, + }, }, } }