ocpp/v2_0_1/datatype/charging_schedule_period

OCPP 2.0.1 ChargingSchedulePeriod data type (schema ChargingSchedulePeriodType).

to_json/decoder map to/from its OCPP-J JSON object; new (when present) builds a value from the required fields only.

Types

Charging schedule period structure defines a time period in a charging schedule.

FieldTypeReqDescription
custom_dataCustomData
limitFloatCharging rate limit during the schedule period, in the applicable chargingRateUnit, for example in Amperes (A) or Watts (W). Accepts at most one digit fraction (e.g. 8.1).
number_phasesIntThe number of phases that can be used for charging. If a number of phases is needed, numberPhases=3 will be assumed unless another number is given.
phase_to_useIntValues: 1..3, Used if numberPhases=1 and if the EVSE is capable of switching the phase connected to the EV, i.e. ACPhaseSwitchingSupported is defined and true. It’s not allowed unless both conditions above are true. If both conditions are true, and phaseToUse is omitted, the Charging Station / EVSE will make the selection on its own.
start_periodIntStart of the period, in seconds from the start of schedule. The value of StartPeriod also defines the stop time of the previous period.

Schema: ChargingSchedulePeriodType · Charging_Schedule_Period · urn:x-oca:ocpp:uid:2:233257

pub type ChargingSchedulePeriod {
  ChargingSchedulePeriod(
    custom_data: option.Option(custom_data.CustomData),
    limit: Float,
    number_phases: option.Option(Int),
    phase_to_use: option.Option(Int),
    start_period: Int,
  )
}

Constructors

Values

pub fn decoder() -> decode.Decoder(ChargingSchedulePeriod)

Decode a ChargingSchedulePeriod from its OCPP-J JSON object, enforcing schema constraints.

pub fn new(
  limit limit: Float,
  start_period start_period: Int,
) -> ChargingSchedulePeriod

Construct a ChargingSchedulePeriod from its required fields, with every optional field set to None.

pub fn to_json(value: ChargingSchedulePeriod) -> json.Json

Encode a ChargingSchedulePeriod to its OCPP-J JSON object.

Search Document