Expand description
Primitive types shared by every OCPP version.
Structs§
- Counter
Ids - A counter-based generator:
<prefix><counter>, base-36 encoded. - Custom
Data - The OCPP 2.x
CustomDataTypeextension point. - Date
Time - An OCPP
dateTime: an instant, serialized as RFC 3339 with an explicit offset. - Date
Time Error - A timestamp that is not valid RFC 3339.
- Decimal
- An exact base-10 decimal:
mantissa × 10⁻ˢᶜᵃˡᵉ. - Identity
- A Charging Station identity.
- Message
Id - An OCPP-J
MessageId(1.6J calls itUniqueId): a string of at most 36 characters that correlates aCALLwith itsCALLRESULT/CALLERROR.
Enums§
- Identity
Error - Why an identity was rejected.
- Message
IdError - Why a message id was rejected.
- Parse
Decimal Error - Why a decimal could not be parsed.
Constants§
- IDENTITY_
MAX_ LEN - The maximum length of a Charging Station identity, in characters.
- MESSAGE_
ID_ MAX_ LEN - The maximum length of an OCPP-J message id, in characters (Part 4 §4.1.1).
Traits§
- IdGenerator
- Source of outgoing
MessageIds.
Functions§
- normalize_
datetime - Rewrites the common non-conforming timestamp spellings into strict RFC 3339.