ocpp/v2_0_1/datatype/charging_schedule

OCPP 2.0.1 ChargingSchedule data type (schema ChargingScheduleType).

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 structure defines a list of charging periods, as used in: GetCompositeSchedule.conf and ChargingProfile.

FieldTypeReqDescription
charging_rate_unitChargingRateUnit
charging_schedule_periodList(ChargingSchedulePeriod)
custom_dataCustomData
durationIntDuration of the charging schedule in seconds. If the duration is left empty, the last period will continue indefinitely or until end of the transaction if chargingProfilePurpose = TxProfile.
idIntIdentifies the ChargingSchedule.
min_charging_rateFloatMinimum charging rate supported by the EV. The unit of measure is defined by the chargingRateUnit. This parameter is intended to be used by a local smart charging algorithm to optimize the power allocation for in the case a charging process is inefficient at lower charging rates. Accepts at most one digit fraction (e.g. 8.1)
sales_tariffSalesTariff
start_scheduleDateTimeStarting point of an absolute schedule. If absent the schedule will be relative to start of charging.

Schema: ChargingScheduleType · Charging_Schedule · urn:x-oca:ocpp:uid:2:233256

pub type ChargingSchedule {
  ChargingSchedule(
    charging_rate_unit: charging_rate_unit.ChargingRateUnit,
    charging_schedule_period: List(
      charging_schedule_period.ChargingSchedulePeriod,
    ),
    custom_data: option.Option(custom_data.CustomData),
    duration: option.Option(Int),
    id: Int,
    min_charging_rate: option.Option(Float),
    sales_tariff: option.Option(sales_tariff.SalesTariff),
    start_schedule: option.Option(timestamp.Timestamp),
  )
}

Constructors

Values

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

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

pub fn new(
  charging_rate_unit charging_rate_unit: charging_rate_unit.ChargingRateUnit,
  charging_schedule_period charging_schedule_period: List(
    charging_schedule_period.ChargingSchedulePeriod,
  ),
  id id: Int,
) -> ChargingSchedule

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

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

Encode a ChargingSchedule to its OCPP-J JSON object.

Search Document