ocpp/v2_1/message/report_der_control
OCPP 2.1 ReportDERControl action.
Request/Response payload types with their OCPP-J codecs
(request_to_json/request_decoder, response_to_json/
response_decoder). Transport-agnostic; the action-string mapping
lives in ocpp/v2_1/dispatch.
Types
| Field | Type | Req | Description |
|---|---|---|---|
curve | List(DerCurveGet) | — | |
custom_data | CustomData | — | |
enter_service | List(EnterServiceGet) | — | |
fixed_pf_absorb | List(FixedPfGet) | — | |
fixed_pf_inject | List(FixedPfGet) | — | |
fixed_var | List(FixedVarGet) | — | |
freq_droop | List(FreqDroopGet) | — | |
gradient | List(GradientGet) | — | |
limit_max_discharge | List(LimitMaxDischargeGet) | — | |
request_id | Int | ✓ | RequestId from GetDERControlRequest. |
tbc | Bool | — | To Be Continued. Default value when omitted: false. + False indicates that there are no further messages as part of this report. |
Schema: ReportDERControlRequest
pub type Request {
Request(
curve: option.Option(List(der_curve_get.DerCurveGet)),
custom_data: option.Option(custom_data.CustomData),
enter_service: option.Option(
List(enter_service_get.EnterServiceGet),
),
fixed_pf_absorb: option.Option(List(fixed_pf_get.FixedPfGet)),
fixed_pf_inject: option.Option(List(fixed_pf_get.FixedPfGet)),
fixed_var: option.Option(List(fixed_var_get.FixedVarGet)),
freq_droop: option.Option(List(freq_droop_get.FreqDroopGet)),
gradient: option.Option(List(gradient_get.GradientGet)),
limit_max_discharge: option.Option(
List(limit_max_discharge_get.LimitMaxDischargeGet),
),
request_id: Int,
tbc: option.Option(Bool),
)
}
Constructors
-
Request( curve: option.Option(List(der_curve_get.DerCurveGet)), custom_data: option.Option(custom_data.CustomData), enter_service: option.Option( List(enter_service_get.EnterServiceGet), ), fixed_pf_absorb: option.Option(List(fixed_pf_get.FixedPfGet)), fixed_pf_inject: option.Option(List(fixed_pf_get.FixedPfGet)), fixed_var: option.Option(List(fixed_var_get.FixedVarGet)), freq_droop: option.Option(List(freq_droop_get.FreqDroopGet)), gradient: option.Option(List(gradient_get.GradientGet)), limit_max_discharge: option.Option( List(limit_max_discharge_get.LimitMaxDischargeGet), ), request_id: Int, tbc: option.Option(Bool), )
This message has no parameters.
| Field | Type | Req | Description |
|---|---|---|---|
custom_data | CustomData | — |
Schema: ReportDERControlResponse
pub type Response {
Response(custom_data: option.Option(custom_data.CustomData))
}
Constructors
-
Response(custom_data: option.Option(custom_data.CustomData))
Values
pub fn new_request(request_id request_id: Int) -> Request
Construct a Request from its required fields, with every optional field set to None.
pub fn new_response() -> Response
Construct a Response from its required fields, with every optional field set to None.
pub fn request_decoder() -> decode.Decoder(Request)
Decode a Request from its OCPP-J JSON object, enforcing schema constraints.
pub fn response_decoder() -> decode.Decoder(Response)
Decode a Response from its OCPP-J JSON object, enforcing schema constraints.