Extends
Members
-
<readonly> connected
-
- Inherited From:
- Source:
Properties:
Name Type Description connected
boolean Check if the device is still attached.
-
<readonly> hub
-
- Inherited From:
- Source:
Properties:
Name Type Description hub
Hub The Hub the device is attached to.
-
<readonly> isVirtualPort
-
- Inherited From:
- Source:
Properties:
Name Type Description isVirtualPort
boolean Is this device attached to a virtual port (ie. a combined device)
-
<readonly> mode
-
- Inherited From:
- Source:
Properties:
Name Type Description mode
number The mode the device is currently in
-
<readonly> portName
-
- Inherited From:
- Source:
Properties:
Name Type Description portName
string The port the device is attached to.
-
<readonly> type
-
- Inherited From:
- Source:
Properties:
Name Type Description type
number The type of the device
Methods
-
rampBrightness(fromBrightness, toBrightness, time)
-
Ramp the light brightness.
Parameters:
Name Type Description fromBrightness
number Brightness value between 0-100 (0 is off)
toBrightness
number Brightness value between 0-100 (0 is off)
time
number How long the ramp should last (in milliseconds).
- Source:
Returns:
Resolved upon successful completion of command.
- Type
- Promise
-
setBrightness(brightness)
-
Set the light brightness.
Parameters:
Name Type Description brightness
number Brightness value between 0-100 (0 is off)
- Source:
Returns:
Resolved upon successful completion of command.
- Type
- Promise