Skip to content

Home > resol-vbus-core > LiveDecoderConstructorOptions

LiveDecoderConstructorOptions interface

The options for the constructor of LiveDecoder.

Signature:

typescript
export interface LiveDecoderConstructorOptions

Properties

Property

Modifiers

Type

Description

channel?

number

(Optional) The VBus channel.

onDatagram?

LiveDecoderEventHandler<Datagram>

(Optional) Callback to inform when a datagram was decoded.

onJunkData?

LiveDecoderEventHandler<Uint8Array>

(Optional) Callback to inform when invalid data was decoded.

onPacket?

LiveDecoderEventHandler<Packet>

(Optional) Callback to inform when a packet was decoded.

onRawData?

LiveDecoderEventHandler<Uint8Array>

(Optional) Callback to inform when raw data was received.

onTelegram?

LiveDecoderEventHandler<Telegram>

(Optional) Callback to inform when a telegram was decoded.