Skip to main content

Module types

Module types 

Source
Expand description

Primitive types shared by every OCPP version.

Structs§

CounterIds
A counter-based generator: <prefix><counter>, base-36 encoded.
CustomData
The OCPP 2.x CustomDataType extension point.
DateTime
An OCPP dateTime: an instant, serialized as RFC 3339 with an explicit offset.
DateTimeError
A timestamp that is not valid RFC 3339.
Decimal
An exact base-10 decimal: mantissa × 10⁻ˢᶜᵃˡᵉ.
Identity
A Charging Station identity.
MessageId
An OCPP-J MessageId (1.6J calls it UniqueId): a string of at most 36 characters that correlates a CALL with its CALLRESULT / CALLERROR.

Enums§

IdentityError
Why an identity was rejected.
MessageIdError
Why a message id was rejected.
ParseDecimalError
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.