From 9eaea429c6c1fc69c3d02ecef90864b75f1eca46 Mon Sep 17 00:00:00 2001 From: Shankari Date: Thu, 13 Jun 2024 00:05:08 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9Fix=20the=20patch=20to=20use=20the?= =?UTF-8?q?=20correct=20field=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After Louis fixed it in his MaEVe repo This fixes https://github.com/US-JOET/everest-demo/pull/4#issuecomment-2164313062 --- manager/libocpp.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manager/libocpp.patch b/manager/libocpp.patch index fdb87231..386b05df 100644 --- a/manager/libocpp.patch +++ b/manager/libocpp.patch @@ -90,7 +90,7 @@ diff -r -uw libocpp_unmod/lib/ocpp/v201/messages/SetChargingProfile.cpp libocpp/ - k.chargingProfile = j.at("chargingProfile"); + EVLOG_error << "In the message class, parsing from JSON: " << j; + k.evseId = j.value("evseId", 1); -+ k.chargingProfile = j.value("chargingProfile", j.at("ChargingProfileType")); ++ k.chargingProfile = j.value("chargingProfile", j.at("ChargingProfile")); // the optional parts of the message if (j.contains("customData")) {