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
-
playSound(sound)
-
Play a built-in train sound.
Parameters:
Name Type Description sound
DuploTrainBaseSound - Source:
Returns:
Resolved upon successful issuance of the command.
- Type
- Promise
-
playTone(tone)
-
Play a built-in system tone.
Parameters:
Name Type Description tone
number - Source:
Returns:
Resolved upon successful issuance of the command.
- Type
- Promise