new RemoteControl()
The RemoteControl is emitted if the discovered device is a Remote Control.
- Source:
Extends
Members
-
<readonly> batteryLevel
-
- Inherited From:
- Overrides:
- Source:
Properties:
Name Type Description batteryLevel
number Battery level of the hub (Percentage between 0-100)
-
<readonly> firmwareVersion
-
- Inherited From:
- Overrides:
- Source:
Properties:
Name Type Description firmwareVersion
string Firmware version of the hub
-
<readonly> hardwareVersion
-
- Inherited From:
- Overrides:
- Source:
Properties:
Name Type Description firmwareVersion
string Hardware version of the hub
-
<readonly> name
-
- Inherited From:
- Overrides:
- Source:
Properties:
Name Type Description name
string Name of the hub
-
<readonly> ports
-
- Inherited From:
- Overrides:
- Source:
Properties:
Name Type Description ports
Array.<string> Array of port names
-
<readonly> primaryMACAddress
-
- Inherited From:
- Overrides:
- Source:
Properties:
Name Type Description primaryMACAddress
string Primary MAC address of the hub
-
<readonly> rssi
-
- Inherited From:
- Overrides:
- Source:
Properties:
Name Type Description rssi
number Signal strength of the hub
-
<readonly> type
-
- Inherited From:
- Overrides:
- Source:
Properties:
Name Type Description type
string Hub type
-
<readonly> uuid
-
- Inherited From:
- Overrides:
- Source:
Properties:
Name Type Description uuid
string UUID of the hub
Methods
-
setName(name)
-
Set the name of the Hub.
Parameters:
Name Type Description name
string New name of the hub (14 characters or less, ASCII only).
- Inherited From:
- Source:
Returns:
Resolved upon successful issuance of command.
- Type
- Promise
-
shutdown()
-
Shutdown the Hub.
- Inherited From:
- Source:
Returns:
Resolved upon successful disconnect.
- Type
- Promise
Events
-
accel
-
Emits when accelerometer detects movement. Measured in mG.
Parameters:
Name Type Description port
string x
number y
number z
number - Inherited From:
- Source:
-
button
-
Emits when a button is pressed.
Parameters:
Name Type Description button
string state
ButtonState - Inherited From:
- Source:
-
tilt
-
Emits when a tilt sensor is activated.
Parameters:
Name Type Description x
number y
number - Inherited From:
- Source: