ocpp/v2_1/message/notify_periodic_event_stream
OCPP 2.1 NotifyPeriodicEventStream action.
Send payload type with its OCPP-J codecs (fire-and-forget: this
action has no response and rides the Request union in dispatch).
Types
| Field | Type | Req | Description |
|---|---|---|---|
basetime | DateTime | ✓ | Base timestamp to add to time offset of values. |
custom_data | CustomData | — | |
data | List(StreamDataElement) | ✓ | |
id | Int | ✓ | Id of stream. (≥ 0) |
pending | Int | ✓ | Number of data elements still pending to be sent. (≥ 0) |
Schema: NotifyPeriodicEventStream
pub type Send {
Send(
basetime: timestamp.Timestamp,
custom_data: option.Option(custom_data.CustomData),
data: List(stream_data_element.StreamDataElement),
id: Int,
pending: Int,
)
}
Constructors
-
Send( basetime: timestamp.Timestamp, custom_data: option.Option(custom_data.CustomData), data: List(stream_data_element.StreamDataElement), id: Int, pending: Int, )
Values
pub fn new_send(
basetime basetime: timestamp.Timestamp,
data data: List(stream_data_element.StreamDataElement),
id id: Int,
pending pending: Int,
) -> Send
Construct a Send from its required fields, with every optional field set to None.
pub fn send_decoder() -> decode.Decoder(Send)
Decode a Send from its OCPP-J JSON object, enforcing schema constraints.