Skip to content

Home > resol-vbus-core > Telegram

Telegram class

A VBus version 3.x telegram.

Signature:

typescript
export declare class Telegram extends Header

Extends: Header

Constructors

Constructor

Modifiers

Description

(constructor)(options)

Construct a telegram.

Properties

Property

Modifiers

Type

Description

command

number

The command (including the frame count).

frameData

Uint8Array

The frame data.

Methods

Method

Modifiers

Description

compareTo(otherHeader)

Compare this telegram to another Header.

getFrameCount()

Get the frame count part of the command.

getFrameCountFromCommand(command)

static

Extract the frame count part from a telegram command.

getFrameData()

Get the used frame data part (capped by frame count).

getId()

Get the ID of this telegram.

getMajorVersion()

Get the major VBus version.