Expand description
OCPP-J RPC framing (OCPP-J 1.6 §4, OCPP 2.0.1/2.1 Part 4 §4).
CALL [2, "<MessageId>", "<Action>", {<Payload>}]
CALLRESULT [3, "<MessageId>", {<Payload>}]
CALLERROR [4, "<MessageId>", "<errorCode>", "<errorDescription>", {<errorDetails>}]
CALLRESULTERROR [5, "<MessageId>", "<errorCode>", "<errorDescription>", {<errorDetails>}] (2.1)
SEND [6, "<MessageId>", "<Action>", {<Payload>}] (2.1)Enums§
- Frame
- Frame
Error - A frame that could not be parsed.
- Message
Type Id
Constants§
- MAX_
ERROR_ DESCRIPTION_ LEN - Maximum CALLERROR description length (2.0.1 Part 4 §4.2.3).
- MAX_
MESSAGE_ ID_ LEN - Maximum message id length, to allow for UUIDs/GUIDs.
- UNKNOWN_
MESSAGE_ ID - Message id to use in a CALLERROR when the id of the offending message cannot be read.
Functions§
- encode_
call - Serializes
[2, id, action, payload]. - encode_
error - Serializes a CALLERROR (
[4, …]) or, withresult_error, a CALLRESULTERROR ([5, …]). - encode_
result - Serializes
[3, id, payload]. - encode_
send - Serializes
[6, id, action, payload](2.1 SEND). - error_
from_ frame - Converts a received CALLERROR into an
RpcError.