PoweredUP

PoweredUP

new PoweredUP()

Source:

Extends

  • EventEmitter

Methods

getHubByPrimaryMACAddress(address) → {BaseHub}

Retrieve a Powered UP Hub by primary MAC address.

Parameters:
Name Type Description
address string
Source:

getHubByPrimaryMACAddress(address) → {BaseHub}

Retrieve a Powered UP Hub by primary MAC address.

Parameters:
Name Type Description
address string
Source:

getHubByUUID(uuid) → {BaseHub|null}

Retrieve a Powered UP Hub by UUID.

Parameters:
Name Type Description
uuid string
Source:

getHubByUUID(uuid) → {BaseHub|null}

Retrieve a Powered UP Hub by UUID.

Parameters:
Name Type Description
uuid string
Source:

getHubs() → {Array.<BaseHub>}

Retrieve a list of Powered UP Hubs.

Source:

getHubs() → {Array.<BaseHub>}

Retrieve a list of Powered UP Hubs.

Source:

getHubsByName(name) → {Array.<BaseHub>}

Retrieve a list of Powered UP Hub by name.

Parameters:
Name Type Description
name string
Source:

getHubsByName(name) → {Array.<BaseHub>}

Retrieve a list of Powered UP Hub by name.

Parameters:
Name Type Description
name string
Source:

getHubsByType(name) → {Array.<BaseHub>}

Retrieve a list of Powered UP Hub by type.

Parameters:
Name Type Description
name string
Source:

getHubsByType(name) → {Array.<BaseHub>}

Retrieve a list of Powered UP Hub by type.

Parameters:
Name Type Description
name string
Source:

scan()

Begin scanning for Powered UP Hub devices.

Source:

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 | MoveHub | TechnicMediumHub | RemoteControl | DuploTrainBase
Source:

discover

Emits when a Powered UP Hub device is found.

Parameters:
Name Type Description
hub WeDo2SmartHub | MoveHub | TechnicMediumHub | RemoteControl | DuploTrainBase
Source:

PoweredUP

new PoweredUP()

Source:

Extends

  • EventEmitter

Methods

getHubByPrimaryMACAddress(address) → {BaseHub}

Retrieve a Powered UP Hub by primary MAC address.

Parameters:
Name Type Description
address string
Source:

getHubByPrimaryMACAddress(address) → {BaseHub}

Retrieve a Powered UP Hub by primary MAC address.

Parameters:
Name Type Description
address string
Source:

getHubByUUID(uuid) → {BaseHub|null}

Retrieve a Powered UP Hub by UUID.

Parameters:
Name Type Description
uuid string
Source:

getHubByUUID(uuid) → {BaseHub|null}

Retrieve a Powered UP Hub by UUID.

Parameters:
Name Type Description
uuid string
Source:

getHubs() → {Array.<BaseHub>}

Retrieve a list of Powered UP Hubs.

Source:

getHubs() → {Array.<BaseHub>}

Retrieve a list of Powered UP Hubs.

Source:

getHubsByName(name) → {Array.<BaseHub>}

Retrieve a list of Powered UP Hub by name.

Parameters:
Name Type Description
name string
Source:

getHubsByName(name) → {Array.<BaseHub>}

Retrieve a list of Powered UP Hub by name.

Parameters:
Name Type Description
name string
Source:

getHubsByType(name) → {Array.<BaseHub>}

Retrieve a list of Powered UP Hub by type.

Parameters:
Name Type Description
name string
Source:

getHubsByType(name) → {Array.<BaseHub>}

Retrieve a list of Powered UP Hub by type.

Parameters:
Name Type Description
name string
Source:

scan()

Begin scanning for Powered UP Hub devices.

Source:

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 | MoveHub | TechnicMediumHub | RemoteControl | DuploTrainBase
Source:

discover

Emits when a Powered UP Hub device is found.

Parameters:
Name Type Description
hub WeDo2SmartHub | MoveHub | TechnicMediumHub | RemoteControl | DuploTrainBase
Source: