+ new PoweredUP() +
+ + + + + + + + + + + + + + + +-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
-
+
-
+
- + poweredup-browser.js, line 35 + +
+
+
+
+
+
+
+
+
Extends
+ + + + +-
+
- EventEmitter +
Methods
+ + + + + + + + + + + ++ getHubByPrimaryMACAddress(address) → {BaseHub} +
+ + + + + + +Retrieve a Powered UP Hub by primary MAC address.
+Parameters:
+ + +Name | + + +Type | + + + + + +Description | +
---|---|---|
address |
+
+
+ + + + + string + + + + + + + | + + + + + ++ + + | +
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
-
+
-
+
- + poweredup-browser.js, line 96 + +
+
+
+
+
+
+
+
+
+ getHubByPrimaryMACAddress(address) → {BaseHub} +
+ + + + + + +Retrieve a Powered UP Hub by primary MAC address.
+Parameters:
+ + +Name | + + +Type | + + + + + +Description | +
---|---|---|
address |
+
+
+ + + + + string + + + + + + + | + + + + + ++ + + | +
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
-
+
-
+
- + poweredup-node.js, line 94 + +
+
+
+
+
+
+
+
+
+ getHubByUUID(uuid) → {BaseHub|null} +
+ + + + + + +Retrieve a Powered UP Hub by UUID.
+Parameters:
+ + +Name | + + +Type | + + + + + +Description | +
---|---|---|
uuid |
+
+
+ + + + + string + + + + + + + | + + + + + ++ + + | +
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
-
+
-
+
- + poweredup-browser.js, line 87 + +
+
+
+
+
+
+
+
+
+ getHubByUUID(uuid) → {BaseHub|null} +
+ + + + + + +Retrieve a Powered UP Hub by UUID.
+Parameters:
+ + +Name | + + +Type | + + + + + +Description | +
---|---|---|
uuid |
+
+
+ + + + + string + + + + + + + | + + + + + ++ + + | +
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
-
+
-
+
- + poweredup-node.js, line 85 + +
+
+
+
+
+
+
+
+
+ getHubs() → {Array.<BaseHub>} +
+ + + + + + +Retrieve a list of Powered UP Hubs.
+-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
-
+
-
+
- + poweredup-browser.js, line 79 + +
+
+
+
+
+
+
+
+
+ getHubs() → {Array.<BaseHub>} +
+ + + + + + +Retrieve a list of Powered UP Hubs.
+-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
-
+
-
+
- + poweredup-node.js, line 77 + +
+
+
+
+
+
+
+
+
+ getHubsByName(name) → {Array.<BaseHub>} +
+ + + + + + +Retrieve a list of Powered UP Hub by name.
+Parameters:
+ + +Name | + + +Type | + + + + + +Description | +
---|---|---|
name |
+
+
+ + + + + string + + + + + + + | + + + + + ++ + + | +
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
-
+
-
+
- + poweredup-browser.js, line 105 + +
+
+
+
+
+
+
+
+
+ getHubsByName(name) → {Array.<BaseHub>} +
+ + + + + + +Retrieve a list of Powered UP Hub by name.
+Parameters:
+ + +Name | + + +Type | + + + + + +Description | +
---|---|---|
name |
+
+
+ + + + + string + + + + + + + | + + + + + ++ + + | +
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
-
+
-
+
- + poweredup-node.js, line 103 + +
+
+
+
+
+
+
+
+
+ getHubsByType(name) → {Array.<BaseHub>} +
+ + + + + + +Retrieve a list of Powered UP Hub by type.
+Parameters:
+ + +Name | + + +Type | + + + + + +Description | +
---|---|---|
name |
+
+
+ + + + + string + + + + + + + | + + + + + ++ + + | +
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
-
+
-
+
- + poweredup-browser.js, line 114 + +
+
+
+
+
+
+
+
+
+ getHubsByType(name) → {Array.<BaseHub>} +
+ + + + + + +Retrieve a list of Powered UP Hub by type.
+Parameters:
+ + +Name | + + +Type | + + + + + +Description | +
---|---|---|
name |
+
+
+ + + + + string + + + + + + + | + + + + + ++ + + | +
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
-
+
-
+
- + poweredup-node.js, line 112 + +
+
+
+
+
+
+
+
+
+ scan() +
+ + + + + + +Begin scanning for Powered UP Hub devices.
+-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
-
+
-
+
- + poweredup-browser.js, line 45 + +
+
+
+
+
+
+
+
+
+ scan() +
+ + + + + + +Begin scanning for Powered UP Hub devices.
+-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
-
+
-
+
- + poweredup-node.js, line 49 + +
+
+
+
+
+
+
+
+
+ stop() +
+ + + + + + +Stop scanning for Powered UP Hub devices.
+-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
-
+
-
+
- + poweredup-node.js, line 65 + +
+
+
+
+
+
+
+
+
Events
+ + + + + + + + + + + ++ discover +
+ + + + + + +Emits when a Powered UP Hub device is found.
+Parameters:
+ + +Name | + + +Type | + + + + + +Description | +
---|---|---|
hub |
+
+
+ + + + + WeDo2SmartHub + + + | + + + MoveHub + + + | + + + TechnicMediumHub + + + | + + + RemoteControl + + + | + + + DuploTrainBase + + + + + + + | + + + + + ++ + + | +
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
-
+
-
+
- + poweredup-browser.js, line 218 + +
+
+
+
+
+
+
+
+
+ discover +
+ + + + + + +Emits when a Powered UP Hub device is found.
+Parameters:
+ + +Name | + + +Type | + + + + + +Description | +
---|---|---|
hub |
+
+
+ + + + + WeDo2SmartHub + + + | + + + MoveHub + + + | + + + TechnicMediumHub + + + | + + + RemoteControl + + + | + + + DuploTrainBase + + + + + + + | + + + + + ++ + + | +
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
-
+
-
+
- + poweredup-node.js, line 162 + +
+
+
+
+
+
+
+
+