Skip to content

Home > resol-vbus-core > Header

Header class

A VBus header, the base primitive for all other VBus data variants.

Signature:

typescript
export declare class Header

Constructors

Constructor

Modifiers

Description

(constructor)(options)

Construct a header.

Properties

Property

Modifiers

Type

Description

channel

number

The VBus channel.

destinationAddress

number

The destination address.

minorVersion

number

The minor VBus version.

sourceAddress

number

The source address.

timestamp

Date

The timestamp.

Methods

Method

Modifiers

Description

compareTo(other)

Compare this header to another.

getId()

Get the ID.

getMajorVersion()

Get the major VBus version. Must be implemented by sub-class.

getProtocolVersion()

Get the VBus version.