ocpp/v2_1/datatype/ac_charging_parameters
OCPP 2.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 for ISO 15118-2
| Field | Type | Req | Description |
|---|---|---|---|
custom_data | CustomData | — | |
energy_amount | Float | ✓ | Amount of energy requested (in Wh). This includes energy required for preconditioning. Relates to: + ISO 15118-2: AC_EVChargeParameterType: EAmount + ISO 15118-20: Dynamic/Scheduled_SEReqControlModeType: EVTargetEnergyRequest |
ev_max_current | Float | ✓ | Maximum current (amps) supported by the electric vehicle (per phase). Includes cable capacity. Relates to: + ISO 15118-2: AC_EVChargeParameterType: EVMaxCurrent |
ev_max_voltage | Float | ✓ | Maximum voltage supported by the electric vehicle. Relates to: + ISO 15118-2: AC_EVChargeParameterType: EVMaxVoltage |
ev_min_current | Float | ✓ | Minimum current (amps) supported by the electric vehicle (per phase). Relates to: + ISO 15118-2: AC_EVChargeParameterType: EVMinCurrent |
Schema: ACChargingParametersType
pub type AcChargingParameters {
AcChargingParameters(
custom_data: option.Option(custom_data.CustomData),
energy_amount: Float,
ev_max_current: Float,
ev_max_voltage: Float,
ev_min_current: Float,
)
}
Constructors
-
AcChargingParameters( custom_data: option.Option(custom_data.CustomData), energy_amount: Float, ev_max_current: Float, ev_max_voltage: Float, ev_min_current: Float, )
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: Float,
ev_max_current ev_max_current: Float,
ev_max_voltage ev_max_voltage: Float,
ev_min_current ev_min_current: Float,
) -> 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.