SignalInfrared

The SignalInfrared class represents an Infrared Signal

Table of Contents

Extends

Methods

(async) cmd(commandId, optsopt) → {Promise.<any>}

Transmit a command

Overrides:
Parameters:
Name Type Attributes Description
commandId string

The ID of the command, as specified in /app.json

opts object <optional>

Transmission options

Name Type Attributes Description
repetitions object <optional>

A custom amount of repetitions

Returns:
Type:
Promise.<any>

(async) disableRX() → {Promise.<void>}

Stop receiving messages for this signal. This is a shorthand method for ManagerRF#disableSignalRX.

Overrides:
Returns:
Type:
Promise.<void>

(async) enableRX() → {Promise.<void>}

Start receiving messages for this signal. This is a shorthand method for ManagerRF#enableSignalRX.

Overrides:
Returns:
Type:
Promise.<void>

(async) tx(frame, optsopt) → {Promise.<any>}

Transmit a frame

Overrides:
Parameters:
Name Type Attributes Description
frame Array.<number>

An array of word indexes

opts object <optional>

Transmission options

Name Type Attributes Description
repetitions object <optional>

A custom amount of repetitions

Returns:
Type:
Promise.<any>