Skip to content

Home > resol-vbus-core > RecordingDecoderConstructorOptions

RecordingDecoderConstructorOptions interface

The options for the constructor of RecordingDecoder.

Signature:

typescript
export interface RecordingDecoderConstructorOptions

Properties

Property

Modifiers

Type

Description

onDatagram?

(dgram: Datagram) => void

(Optional) Callback for datagram records (kind = 0x66 and payload contains datagram).

onEndOfHeaderSet?

(timestamp: Date) => void

(Optional) Callback to signal end of header set.

onJunkData?

(buffer: Uint8Array) => void

(Optional) Callback for buffer parts that do not conform to the file format spec.

onPacket?

(packet: Packet) => void

(Optional) Callback for packet records (kind = 0x66 and payload contains packet).

onRawRecord?

(buffer: Uint8Array) => void

(Optional) Callback for the raw undecoded records.

onStartOfHeaderSet?

(timestamp: Date) => void

(Optional) Callback for Start-Of-Header-Set records (kind = 0x44).

onTelegram?

(tgram: Telegram) => void

(Optional) Callback for telegram records (kind = 0x77 and payload contains telegram).