ocpp/v2_1/datatype/v2x_freq_watt_point

OCPP 2.1 V2xFreqWattPoint data type (schema V2XFreqWattPointType).

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) A point of a frequency-watt curve.

FieldTypeReqDescription
custom_dataCustomData
frequencyFloatNet frequency in Hz.
powerFloatPower in W to charge (positive) or discharge (negative) at specified frequency.

Schema: V2XFreqWattPointType

pub type V2xFreqWattPoint {
  V2xFreqWattPoint(
    custom_data: option.Option(custom_data.CustomData),
    frequency: Float,
    power: Float,
  )
}

Constructors

Values

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

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

pub fn new(
  frequency frequency: Float,
  power power: Float,
) -> V2xFreqWattPoint

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

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

Encode a V2xFreqWattPoint to its OCPP-J JSON object.

Search Document