Methods
(async) initialise() → {Promise}
Initialise the connection to the Relay
(async) off(relayNo) → {Promise}
Switch a Relay to OFF
Parameters:
Name | Type | Description |
---|---|---|
relayNo |
Number |
The number of the Relay you want to switch OFF |
(async) on(relayNo) → {Promise}
Switch a Relay to ON
Parameters:
Name | Type | Description |
---|---|---|
relayNo |
Number |
The number of the Relay you want to switch ON |
(async) status(relayNo) → {Promise}
Query the status of a Relay
Parameters:
Name | Type | Description |
---|---|---|
relayNo |
Number |
The number of the Relay that you want to query the status of. |