Closed m4su6747 closed 1 week ago
Hi @m4su6747, I believe the conversion is required due to that fact that we can't enforce type hints (like Typescript) for AnyType data in python. Moreover, this conversion is a safe guard which allows developers to pass in the both snakeCase and camelCase keys without worrying too much about the OCPP format compliance.
Thanks for repley But, with the conversion, we can only send key in camelCaseKey.
Here I'm trying to send "snake_case_key": 2, but it becomes "snakeCaseKey":2 when sending out. Receiver can only get camelCaseKey style key, not snake_case_key I desired. And also like SCREAMING_CASE_KEY or other style won't be adoptable for AnyType data with the conversion.
Hello,
I tried to collect data using customData or DataTransfer.
Here is an example:
According to the document:
Since all the data I send will pass through the camelCase/snake_case conversion, the outgoing message will be:
And the received payload structure in python becomes:
I'm wondering whether it should skip the conversion, or should OCPP be restricted to using camelCase key names even for AnyType data?