Class: PoweredUP

PoweredUP


new PoweredUP()

Source:

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>

getConnectedHubsByName(name)

Retrieve a list of Powered UP Hub by name.

Parameters:
Name Type Description
name string
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 | ControlPlusHub | PUPHub | PUPRemote | DuploTrainBase
Source: