RFSignal

Properties

FREQUENCY

FREQUENCY: '433'|'868'|'ir'

Type

  • '433' | '868' | 'ir'

ID

ID: string

Type

  • string

manifest

manifest: object

The Signal's manifest

Type

  • object

Methods

commandToDeviceData

(static) commandToDeviceData(command)

Parameters

Name Type Description
command
object

commandToPayload

(static) commandToPayload(props)

Parameters

Name Type Description
props
object

createPairCommand

(static) createPairCommand()

payloadToCommand

(static) payloadToCommand(props)

Parameters

Name Type Description
props
object

cmd

(async) cmd(command, props): Promise.<void>

Parameters

Name Type Description
command
string
props
object

Returns

Promise.<void>

onRX

(async) onRX(payload, isFirst): Promise.<void>

Parameters

Name Type Description
payload
isFirst
boolean

Returns

Promise.<void>

registerRXListener

(async) registerRXListener(listener): Promise.<void>

Parameters

Name Type Description
listener
function

Returns

Promise.<void>

tx

(async) tx(command, props): Promise.<void>

Parameters

Name Type Description
command
string
props
object

Returns

Promise.<void>

unregisterRXListener

(async) unregisterRXListener(listener): Promise.<void>

Parameters

Name Type Description
listener
function

Returns

Promise.<void>