Skip to content

Home > resol-vbus-core > liveEncodePacket

liveEncodePacket() function

Encode a VBus packet into its live protocol representation.

Signature:

typescript
export declare function liveEncodePacket(packet: Packet): Uint8Array;

Parameters

Parameter

Type

Description

packet

Packet

The packet to encode.

**Returns:**

Uint8Array

The encoded data.