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

FieldTypeReqDescription
basetimeDateTimeBase timestamp to add to time offset of values.
custom_dataCustomData
dataList(StreamDataElement)
idIntId of stream. (≥ 0)
pendingIntNumber 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

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.

pub fn send_to_json(value: Send) -> json.Json

Encode a Send to its OCPP-J JSON object.

Search Document