ocpp/v2_1/datatype/ev_power_schedule_entry

OCPP 2.1 EvPowerScheduleEntry data type (schema EVPowerScheduleEntryType).

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

Types

(2.1) An entry in schedule of the energy amount over time that EV is willing to discharge. A negative value indicates the willingness to discharge under specific conditions, a positive value indicates that the EV currently is not able to offer energy to discharge.

FieldTypeReqDescription
custom_dataCustomData—
durationInt✓The duration of this entry.
powerFloat✓Defines maximum amount of power for the duration of this EVPowerScheduleEntry to be discharged from the EV battery through EVSE power outlet. Negative values are used for discharging.

Schema: EVPowerScheduleEntryType

pub type EvPowerScheduleEntry {
  EvPowerScheduleEntry(
    custom_data: option.Option(custom_data.CustomData),
    duration: Int,
    power: Float,
  )
}

Constructors

Values

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

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

pub fn new(
  duration duration: Int,
  power power: Float,
) -> EvPowerScheduleEntry

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

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

Encode a EvPowerScheduleEntry to its OCPP-J JSON object.

✨ Search Document