ocpp/v2_1/datatype/limit_max_discharge

OCPP 2.1 LimitMaxDischarge data type (schema LimitMaxDischargeType).

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

Types

FieldTypeReqDescription
custom_dataCustomData
durationFloatDuration in seconds that this setting is active
pct_max_discharge_powerFloatOnly for PowerMonitoring. + The value specifies a percentage (0 to 100) of the rated maximum discharge power of EV. The PowerMonitoring curve becomes active when power exceeds this percentage.
power_monitoring_must_tripDerCurve
priorityIntPriority of setting (0=highest) (≥ 0)
start_timeDateTimeTime when this setting becomes active

Schema: LimitMaxDischargeType

pub type LimitMaxDischarge {
  LimitMaxDischarge(
    custom_data: option.Option(custom_data.CustomData),
    duration: option.Option(Float),
    pct_max_discharge_power: option.Option(Float),
    power_monitoring_must_trip: option.Option(der_curve.DerCurve),
    priority: Int,
    start_time: option.Option(timestamp.Timestamp),
  )
}

Constructors

Values

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

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

pub fn new(priority priority: Int) -> LimitMaxDischarge

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

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

Encode a LimitMaxDischarge to its OCPP-J JSON object.

Search Document