ocpp/v2_1/datatype/reactive_power_params

OCPP 2.1 ReactivePowerParams data type (schema ReactivePowerParamsType).

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

Types

FieldTypeReqDescription
autonomous_v_ref_enableBoolOnly for VoltVar: Enable/disable autonomous VRef adjustment
autonomous_v_ref_time_constantFloatOnly for VoltVar: Adjustment range for VRef time constant
custom_dataCustomData
v_refFloatOnly for VoltVar curve: The nominal ac voltage (rms) adjustment to the voltage curve points for Volt-Var curves (percentage).

Schema: ReactivePowerParamsType

pub type ReactivePowerParams {
  ReactivePowerParams(
    autonomous_v_ref_enable: option.Option(Bool),
    autonomous_v_ref_time_constant: option.Option(Float),
    custom_data: option.Option(custom_data.CustomData),
    v_ref: option.Option(Float),
  )
}

Constructors

Values

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

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

pub fn new() -> ReactivePowerParams

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

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

Encode a ReactivePowerParams to its OCPP-J JSON object.

Search Document