Skip to content

Home > resol-vbus-core-toolbox > ScriptConstructorOptions > onTransmit

ScriptConstructorOptions.onTransmit() method

Callback used to transmit data from this script using $.send.

Signature:

typescript
onTransmit(script: Script, channel: number, buffer: Uint8Array): void;

Parameters

Parameter

Type

Description

script

Script

The script that wants to transmit.

channel

number

The channel to transmit over.

buffer

Uint8Array

The data to transmit.

**Returns:**

void