Extends
- EventEmitter
Methods
-
getConnectedHubByUUID(uuid)
-
Retrieve a Powered UP Hub by UUID.
Parameters:
Name Type Description uuid
string - Source:
Returns:
- Type
- Hub | null
-
getConnectedHubs()
-
Retrieve a list of Powered UP Hubs.
- Source:
Returns:
- Type
- Array.<Hub>
-
scan()
-
Begin scanning for Powered UP Hub devices.
- Source:
-
stop()
-
Stop scanning for Powered UP Hub devices.
- Source:
Events
-
discover
-
Emits when a Powered UP Hub device is found.
Parameters:
Name Type Description hub
WeDo2SmartHub | BoostMoveHub | PUPHub | PUPRemote | DuploTrainBase - Source: