Closed Sadeeed closed 1 year ago
Resolved it, when using channels you will have to convert your payload to camelCase
instead of the default snake_case
just pass your payload like this
from ocpp.charge_point import snake_to_camel_case
self.send_json(content.create_call_result(snake_to_camel_case(asdict(payload))))
Hi, I get this error in my chargers event logs when replying to a BootNotification with my Django channels-based OCPP application
BootNotificationReq error: OccurenceConstraintViolation, Parameter 'currentTime' is missing
and I'm sending the current time already. This code was working with Flask and WebSockets but for some reason, the same code doesn't want to work on Django with channels.Here is my Consumer all other actions aren't performed yet since it fails at sending the correct boot notification
I very confused at this point and would appreciate any help