ocpp/v2_1/datatype/hysteresis

OCPP 2.1 Hysteresis data type (schema HysteresisType).

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
hysteresis_delayFloatDelay in seconds, once grid parameter within HysteresisLow and HysteresisHigh, for the EV to return to normal operation after a grid event.
hysteresis_gradientFloatSet default rate of change (ramp rate %/s) for the EV to return to normal operation after a grid event
hysteresis_highFloatHigh value for return to normal operation after a grid event, in absolute value. This value adopts the same unit as defined by yUnit
hysteresis_lowFloatLow value for return to normal operation after a grid event, in absolute value. This value adopts the same unit as defined by yUnit

Schema: HysteresisType

pub type Hysteresis {
  Hysteresis(
    custom_data: option.Option(custom_data.CustomData),
    hysteresis_delay: option.Option(Float),
    hysteresis_gradient: option.Option(Float),
    hysteresis_high: option.Option(Float),
    hysteresis_low: option.Option(Float),
  )
}

Constructors

Values

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

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

pub fn new() -> Hysteresis

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

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

Encode a Hysteresis to its OCPP-J JSON object.

Search Document