ocpp/v2_0_1/datatype/ac_charging_parameters

OCPP 2.0.1 AcChargingParameters data type (schema ACChargingParametersType).

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

Types

EV AC charging parameters.

FieldTypeReqDescription
custom_dataCustomData
energy_amountIntAmount of energy requested (in Wh). This includes energy required for preconditioning.
ev_max_currentIntMaximum current (amps) supported by the electric vehicle (per phase). Includes cable capacity.
ev_max_voltageIntMaximum voltage supported by the electric vehicle
ev_min_currentIntMinimum current (amps) supported by the electric vehicle (per phase).

Schema: ACChargingParametersType · AC_Charging_Parameters · urn:x-oca:ocpp:uid:2:233250

pub type AcChargingParameters {
  AcChargingParameters(
    custom_data: option.Option(custom_data.CustomData),
    energy_amount: Int,
    ev_max_current: Int,
    ev_max_voltage: Int,
    ev_min_current: Int,
  )
}

Constructors

Values

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

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

pub fn new(
  energy_amount energy_amount: Int,
  ev_max_current ev_max_current: Int,
  ev_max_voltage ev_max_voltage: Int,
  ev_min_current ev_min_current: Int,
) -> AcChargingParameters

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

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

Encode a AcChargingParameters to its OCPP-J JSON object.

Search Document