+
new ControlPlusHub()
+ + +The ControlPlusHub is emitted if the discovered device is a Control+ Hub.
+-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
-
+
-
+
- + controlplushub.js, + line 15 + +
+
+
+
+
+
+
+
+
Extends
+ + + + + + + + + + + + + + + + + + +Members
+ +-
+
+
-
+
<readonly> batteryLevel
+ + +
+ -
+
+
+
+
+
+
-
+
+
+
- Inherited From: +
-
+
-
+
- + Hub#batteryLevel + +
+
+
+
+ - Overrides: +
- + Hub#batteryLevel +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source: +
- + + + + + + + + + +
Properties:
+ +-
+
+
+ +
++ + + + + + + +Name + + +Type + + + + + +Description ++ + + + + + + + +batteryLevel
+ + +number + + + + + + + + + + + +Battery level of the hub (Percentage between 0-100)
+
+
+
+ -
+
<readonly> current
+ + +
+ -
+
+
+
+
+
+
-
+
+
+
- Inherited From: +
-
+
-
+
- + Hub#current + +
+
+
+
+ - Overrides: +
- + Hub#current +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source: +
- + + + + + + + + + +
Properties:
+ +-
+
+
+ +
++ + + + + + + +Name + + +Type + + + + + +Description ++ + + + + + + + +current
+ + +number + + + + + + + + + + + +Current usage of the hub (Milliamps)
+
+
+
+ -
+
<readonly> firmwareVersion
+ + +
+ -
+
+
+
+
+
+
-
+
+
+
- Inherited From: +
-
+
-
+
- + Hub#firmwareVersion + +
+
+
+
+ - Overrides: +
- + + + + + + + + + + + + + + + + + + + + + +
- Source: +
- + + + + + + + + + +
Properties:
+ +-
+
+
+ +
++ + + + + + + +Name + + +Type + + + + + +Description ++ + + + + + + + +firmwareVersion
+ + +string + + + + + + + + + + + +Firmware version of the hub
+
+
+
+ -
+
<readonly> name
+ + +
+ -
+
+
+
+
+
+
-
+
+
+
- Inherited From: +
-
+
-
+
- + Hub#name + +
+
+
+
+ - Overrides: +
- + Hub#name +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source: +
- + + + + + + + + + +
Properties:
+ +-
+
+
+ +
++ + + + + + + +Name + + +Type + + + + + +Description ++ + + + + + + + +name
+ + +string + + + + + + + + + + + +Name of the hub
+
+
+
+ -
+
<readonly> rssi
+ + +
+ -
+
+
+
+
+
+
-
+
+
+
- Inherited From: +
-
+
-
+
- + Hub#rssi + +
+
+
+
+ - Overrides: +
- + Hub#rssi +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source: +
- + + + + + + + + + +
Properties:
+ +-
+
+
+ +
++ + + + + + + +Name + + +Type + + + + + +Description ++ + + + + + + + +rssi
+ + +number + + + + + + + + + + + +Signal strength of the hub
+
+
+
+ -
+
<readonly> uuid
+ + +
+ -
+
+
+
+
+
+
-
+
+
+
- Inherited From: +
-
+
-
+
- + Hub#uuid + +
+
+
+
+ - Overrides: +
- + Hub#uuid +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source: +
- + + + + + + + + + +
Properties:
+ +-
+
+
+ +
++ + + + + + + +Name + + +Type + + + + + +Description ++ + + + + + + + +uuid
+ + +string + + + + + + + + + + + +UUID of the hub
+
+
+
+ -
+
<readonly> voltage
+ + +
+ -
+
+
+
+
+
+
-
+
+
+
- Inherited From: +
-
+
-
+
- + Hub#voltage + +
+
+
+
+ - Overrides: +
- + Hub#voltage +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source: +
- + + + + + + + + + +
Properties:
+ +-
+
+
+ +
++ + + + + + + +Name + + +Type + + + + + +Description ++ + + + + + + + +voltage
+ + +number + + + + + + + + + + + +Voltage of the hub (Volts)
+
+
+
+
+
+
+
+
+
Methods
+ +-
+
+
-
+
brakeMotor(port)
+ + +
+ -
+
+
+ ++ + + + + + + + +
Fully (hard) stop the motor on a given port.
+Parameters:
+ + ++ +
+ + + + ++ + + + + + + +Name + + +Type + + + + + +Description ++ + + + + + + + +port
+ + +string + + + + + + + + + + ++ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
-
+
-
+
- + controlplushub.js, + line 192 + +
+
+
+
+
+
+
+
+
Returns:
+ + +++ + + +Resolved upon successful completion of command.
+-
+
- + Type + +
- + +Promise + + + + +
+
+
+
+ -
+
connect()
+ + +
+ -
+
+
+ ++ + + + + + + + + + +
Connect to the Hub.
+-
+
+
+
+
+
+
+
+
- Inherited From: +
-
+
-
+
- + Hub#connect + +
+
+
+
+ - Overrides: +
- + Hub#connect +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source: +
- + + + + + + + + + +
Returns:
+ + +++ + + +Resolved upon successful connect.
+-
+
- + Type + +
- + +Promise + + + + +
+
+
+
+ -
+
disconnect()
+ + +
+ -
+
+
+ ++ + + + + + + + + + +
Disconnect the Hub.
+-
+
+
+
+
+
+
+
+
- Inherited From: +
-
+
-
+
- + Hub#disconnect + +
+
+
+
+ - Overrides: +
- + Hub#disconnect +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source: +
- + + + + + + + + + +
Returns:
+ + +++ + + +Resolved upon successful disconnect.
+-
+
- + Type + +
- + +Promise + + + + +
+
+
+
+ -
+
getHubType()
+ + +
+ -
+
+
+ ++ + + + + + + + + + +
Get the hub type.
+-
+
+
+
+
+
+
+
+
- Inherited From: +
-
+
-
+
- + Hub#getHubType + +
+
+
+
+ - Overrides: +
- + Hub#getHubType +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source: +
- + + + + + + + + + +
Returns:
+ + + + +-
+
- + Type + +
- + +HubType + + + + +
+
+
+
+ -
+
getPortDeviceType(port)
+ + +
+ -
+
+
+ ++ + + + + + + + +
Get the device type for a given port.
+Parameters:
+ + ++ +
+ + + + ++ + + + + + + +Name + + +Type + + + + + +Description ++ + + + + + + + +port
+ + +string + + + + + + + + + + ++ -
+
+
+
+
+
+
+
+
- Inherited From: +
-
+
-
+
- + Hub#getPortDeviceType + +
+
+
+
+ - Overrides: +
- + + + + + + + + + + + + + + + + + + + + + +
- Source: +
- + + + + + + + + + +
Returns:
+ + + + +-
+
- + Type + +
- + +DeviceType + + + + +
+
+
+
+ -
+
rampMotorSpeed(port, fromSpeed, toSpeed, time)
+ + +
+ -
+
+
+ ++ + + + + + + + +
Ramp the motor speed on a given port.
+Parameters:
+ + ++ +
+ + + + ++ + + + + + + +Name + + +Type + + + + + +Description ++ + + + + + + + +port
+ + +string + + + + + + + + + + ++ + + + + + + + + +fromSpeed
+ + +number + + + + + + + + + + + +For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.
+ + + + + + + + +toSpeed
+ + +number + + + + + + + + + + + +For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.
+ + + + + + + + +time
+ + +number + + + + + + + + + + + +How long the ramp should last (in milliseconds).
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
-
+
-
+
- + controlplushub.js, + line 135 + +
+
+
+
+
+
+
+
+
Returns:
+ + +++ + + +Resolved upon successful completion of command.
+-
+
- + Type + +
- + +Promise + + + + +
+
+
+
+ -
+
setLEDColor(color)
+ + +
+ -
+
+
+ ++ + + + + + + + +
Set the color of the LED on the Hub via a color value.
+Parameters:
+ + ++ +
+ + + + ++ + + + + + + +Name + + +Type + + + + + +Description ++ + + + + + + + +color
+ + +Color + + + + + + + + + + ++ -
+
+
+
+
+
+
+
+
- Inherited From: +
-
+
-
+
- + LPF2Hub#setLEDColor + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source: +
-
+
-
+
- + lpf2hub.js, + line 78 + +
+
+
+
+
+
+
+
+
Returns:
+ + +++ + + +Resolved upon successful issuance of command.
+-
+
- + Type + +
- + +Promise + + + + +
+
+
+
+ -
+
setLEDRGB(red, green, blue)
+ + +
+ -
+
+
+ ++ + + + + + + + +
Set the color of the LED on the Hub via RGB values.
+Parameters:
+ + ++ +
+ + + + ++ + + + + + + +Name + + +Type + + + + + +Description ++ + + + + + + + +red
+ + +number + + + + + + + + + + ++ + + + + + + + + +green
+ + +number + + + + + + + + + + ++ + + + + + + + + +blue
+ + +number + + + + + + + + + + ++ -
+
+
+
+
+
+
+
+
- Inherited From: +
-
+
-
+
- + LPF2Hub#setLEDRGB + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source: +
-
+
-
+
- + lpf2hub.js, + line 96 + +
+
+
+
+
+
+
+
+
Returns:
+ + +++ + + +Resolved upon successful issuance of command.
+-
+
- + Type + +
- + +Promise + + + + +
+
+
+
+ -
+
setLightBrightness(port, brightness [, time])
+ + +
+ -
+
+
+ ++ + + + + + + + +
Set the light brightness on a given port.
+Parameters:
+ + ++ +
+ + + + ++ + + + + + + +Name + + +Type + + +Argument + + + + +Description ++ + + + + + + + +port
+ + +string + + + + + + + ++ + + + + + + + + + ++ + + + + + + + + +brightness
+ + +number + + + + + + + ++ + + + + + + + + + + +Brightness value between 0-100 (0 is off)
+ + + + + + + + +time
+ + +number + + + + + + + ++ + <optional> + + + + +
+ + + + + + +How long to turn the light on (in milliseconds). Leave empty to turn the light on indefinitely.
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
-
+
-
+
- + controlplushub.js, + line 201 + +
+
+
+
+
+
+
+
+
Returns:
+ + +++ + + +Resolved upon successful completion of command. If time is specified, this is once the light is turned off.
+-
+
- + Type + +
- + +Promise + + + + +
+
+
+
+ -
+
setMotorAngle(port, angle [, speed])
+ + +
+ -
+
+
+ ++ + + + + + + + +
Rotate a motor by a given angle.
+Parameters:
+ + ++ +
+ + + + ++ + + + + + + +Name + + +Type + + +Argument + + + +Default + + +Description ++ + + + + + + + +port
+ + +string + + + + + + + ++ + + + + + + + + ++ + + + ++ + + + + + + + + +angle
+ + +number + + + + + + + ++ + + + + + + + + ++ + + + + +How much the motor should be rotated (in degrees).
+ + + + + + + + +speed
+ + +number +| + +Array.<number> + + + + + + + ++ + <optional> + + + +
+ + + + + ++ + 100 + + + + + +For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0. If you are specifying port AB to control both motors, you can optionally supply a tuple of speeds.
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
-
+
-
+
- + controlplushub.js, + line 155 + +
+
+
+
+
+
+
+
+
Returns:
+ + +++ + + +Resolved upon successful completion of command (ie. once the motor is finished).
+-
+
- + Type + +
- + +Promise + + + + +
+
+
+
+ -
+
setMotorSpeed(port, speed [, time])
+ + +
+ -
+
+
+ ++ + + + + + + + +
Set the motor speed on a given port.
+Parameters:
+ + ++ +
+ + + + ++ + + + + + + +Name + + +Type + + +Argument + + + + +Description ++ + + + + + + + +port
+ + +string + + + + + + + ++ + + + + + + + + + ++ + + + + + + + + +speed
+ + +number +| + +Array.<number> + + + + + + + ++ + + + + + + + + + + +For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0. If you are specifying port AB to control both motors, you can optionally supply a tuple of speeds.
+ + + + + + + + +time
+ + +number + + + + + + + ++ + <optional> + + + + +
+ + + + + + +How long to activate the motor for (in milliseconds). Leave empty to turn the motor on indefinitely.
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Source: +
-
+
-
+
- + controlplushub.js, + line 54 + +
+
+
+
+
+
+
+
+
Returns:
+ + +++ + + +Resolved upon successful completion of command. If time is specified, this is once the motor is finished.
+-
+
- + Type + +
- + +Promise + + + + +
+
+
+
+ -
+
setName(name)
+ + +
+ -
+
+
+ ++ + + + + + + + +
Set the name of the Hub.
+Parameters:
+ + ++ +
+ + + + ++ + + + + + + +Name + + +Type + + + + + +Description ++ + + + + + + + +name
+ + +string + + + + + + + + + + + +New name of the hub (14 characters or less, ASCII only).
-
+
+
+
+
+
+
+
+
- Inherited From: +
-
+
-
+
- + LPF2Hub#setName + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source: +
-
+
-
+
- + lpf2hub.js, + line 58 + +
+
+
+
+
+
+
+
+
Returns:
+ + +++ + + +Resolved upon successful issuance of command.
+-
+
- + Type + +
- + +Promise + + + + +
+
+
+
+ -
+
shutdown()
+ + +
+ -
+
+
+ ++ + + + + + + + + + +
Shutdown the Hub.
+-
+
+
+
+
+
+
+
+
- Inherited From: +
-
+
-
+
- + LPF2Hub#shutdown + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source: +
-
+
-
+
- + lpf2hub.js, + line 46 + +
+
+
+
+
+
+
+
+
Returns:
+ + +++ + + +Resolved upon successful disconnect.
+-
+
- + Type + +
- + +Promise + + + + +
+
+
+
+ -
+
sleep(delay)
+ + +
+ -
+
+
+ ++ + + + + + + + +
Sleep a given amount of time.
+This is a helper method to make it easier to add delays into a chain of commands.
+Parameters:
+ + ++ +
+ + + + ++ + + + + + + +Name + + +Type + + + + + +Description ++ + + + + + + + +delay
+ + +number + + + + + + + + + + + +How long to sleep (in milliseconds).
-
+
+
+
+
+
+
+
+
- Inherited From: +
-
+
-
+
- + Hub#sleep + +
+
+
+
+ - Overrides: +
- + Hub#sleep +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source: +
- + + + + + + + + + +
Returns:
+ + +++ + + +Resolved after the delay is finished.
+-
+
- + Type + +
- + +Promise + + + + +
+
+
+
+ -
+
subscribe(port [, mode])
+ + +
+ -
+
+
+ ++ + + + + + + + +
Subscribe to sensor notifications on a given port.
+Parameters:
+ + ++ +
+ + + + ++ + + + + + + +Name + + +Type + + +Argument + + + + +Description ++ + + + + + + + +port
+ + +string + + + + + + + ++ + + + + + + + + + ++ + + + + + + + + +mode
+ + +number + + + + + + + ++ + <optional> + + + + +
+ + + + + + +The sensor mode to activate. If no mode is provided, the default for that sensor will be chosen.
-
+
+
+
+
+
+
+
+
- Inherited From: +
-
+
-
+
- + Hub#subscribe + +
+
+
+
+ - Overrides: +
- + Hub#subscribe +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source: +
- + + + + + + + + + +
Returns:
+ + +++ + + +Resolved upon successful issuance of command.
+-
+
- + Type + +
- + +Promise + + + + +
+
+
+
+ -
+
unsubscribe(port)
+ + +
+ -
+
+
+ ++ + + + + + + + +
Unsubscribe to sensor notifications on a given port.
+Parameters:
+ + ++ +
+ + + + ++ + + + + + + +Name + + +Type + + + + + +Description ++ + + + + + + + +port
+ + +string + + + + + + + + + + ++ -
+
+
+
+
+
+
+
+
- Inherited From: +
-
+
-
+
- + Hub#unsubscribe + +
+
+
+
+ - Overrides: +
- + Hub#unsubscribe +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source: +
- + + + + + + + + + +
Returns:
+ + +++ + + +Resolved upon successful issuance of command.
+-
+
- + Type + +
- + +Promise + + + + +
+
+
+
+ -
+
wait(commands)
+ + +
+ -
+
+
+ ++ + + + + + + + +
Wait until a given list of concurrently running commands are complete.
+This is a helper method to make it easier to wait for concurrent commands to complete.
+Parameters:
+ + ++ +
+ + + + ++ + + + + + + +Name + + +Type + + + + + +Description ++ + + + + + + + +commands
+ + +Array.<Promise.<any>> + + + + + + + + + + + +Array of executing commands.
-
+
+
+
+
+
+
+
+
- Inherited From: +
-
+
-
+
- + Hub#wait + +
+
+
+
+ - Overrides: +
- + Hub#wait +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source: +
- + + + + + + + + + +
Returns:
+ + +++ + + +Resolved after the commands are finished.
+-
+
- + Type + +
- + +Promise + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Events
+ +-
+
+
-
+
attach
+ + +
+ -
+
+
+ ++ + + + + + + + +
Emits when a motor or sensor is attached to the Hub.
+Parameters:
+ + ++ +
+ + + + ++ + + + + + + +Name + + +Type + + + + + +Description ++ + + + + + + + +port
+ + +string + + + + + + + + + + ++ + + + + + + + + +type
+ + +DeviceType + + + + + + + + + + ++ -
+
+
+
+
+
+
+
+
- Inherited From: +
-
+
-
+
- + Hub#event:attach + +
+
+
+
+ - Overrides: +
- + Hub#event:attach +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source: +
- + + + + + + + + + +
+
+
+
+ -
+
button
+ + +
+ -
+
+
+ ++ + + + + + + + +
Emits when a button is pressed.
+Parameters:
+ + ++ +
+ + + + ++ + + + + + + +Name + + +Type + + + + + +Description ++ + + + + + + + +button
+ + +string + + + + + + + + + + ++ + + + + + + + + +state
+ + +ButtonState + + + + + + + + + + ++ -
+
+
+
+
+
+
+
+
- Inherited From: +
-
+
-
+
- + LPF2Hub#event:button + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source: +
-
+
-
+
- + lpf2hub.js, + line 188 + +
+
+
+
+
+
+
+
+
+
+
+
+ -
+
color
+ + +
+ -
+
+
+ ++ + + + + + + + +
Emits when a color sensor is activated.
+Parameters:
+ + ++ +
+ + + + ++ + + + + + + +Name + + +Type + + + + + +Description ++ + + + + + + + +port
+ + +string + + + + + + + + + + ++ + + + + + + + + +color
+ + +Color + + + + + + + + + + ++ -
+
+
+
+
+
+
+
+
- Inherited From: +
-
+
-
+
- + LPF2Hub#event:color + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source: +
-
+
-
+
- + lpf2hub.js, + line 314 + +
+
+
+
+
+
+
+
+
+
+
+
+ -
+
colorAndDistance
+ + +
+ -
+
+
+ ++ + + + + + + + +
A combined color and distance event, emits when the sensor is activated.
+Parameters:
+ + ++ +
+ + + + ++ + + + + + + +Name + + +Type + + + + + +Description ++ + + + + + + + +port
+ + +string + + + + + + + + + + ++ + + + + + + + + +color
+ + +Color + + + + + + + + + + ++ + + + + + + + + +distance
+ + +number + + + + + + + + + + + +Distance, in millimeters.
-
+
+
+
+
+
+
+
+
- Inherited From: +
-
+
-
+
- + LPF2Hub#event:colorAndDistance + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source: +
-
+
-
+
- + lpf2hub.js, + line 330 + +
+
+
+
+
+
+
+
+
+
+
+
+ -
+
detach
+ + +
+ -
+
+
+ ++ + + + + + + + +
Emits when an attached motor or sensor is detached from the Hub.
+Parameters:
+ + ++ +
+ + + + ++ + + + + + + +Name + + +Type + + + + + +Description ++ + + + + + + + +port
+ + +string + + + + + + + + + + ++ -
+
+
+
+
+
+
+
+
- Inherited From: +
-
+
-
+
- + Hub#event:detach + +
+
+
+
+ - Overrides: +
- + Hub#event:detach +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source: +
- + + + + + + + + + +
+
+
+
+ -
+
distance
+ + +
+ -
+
+
+ ++ + + + + + + + +
Emits when a distance sensor is activated.
+Parameters:
+ + ++ +
+ + + + ++ + + + + + + +Name + + +Type + + + + + +Description ++ + + + + + + + +port
+ + +string + + + + + + + + + + ++ + + + + + + + + +distance
+ + +number + + + + + + + + + + + +Distance, in millimeters.
-
+
+
+
+
+
+
+
+
- Inherited From: +
-
+
-
+
- + LPF2Hub#event:distance + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source: +
-
+
-
+
- + lpf2hub.js, + line 304 + +
+
+
+
+
+
+
+
+
+
+
+
+ -
+
rotate
+ + +
+ -
+
+
+ ++ + + + + + + + +
Emits when a rotation sensor is activated.
+Parameters:
+ + ++ +
+ + + + ++ + + + + + + +Name + + +Type + + + + + +Description ++ + + + + + + + +port
+ + +string + + + + + + + + + + ++ + + + + + + + + +rotation
+ + +number + + + + + + + + + + ++ -
+
+
+
+
+
+
+
+
- Inherited From: +
-
+
-
+
- + LPF2Hub#event:rotate + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source: +
-
+
-
+
- + lpf2hub.js, + line 359 + +
+
+
+
+
+
+
+
+
+
+
+
+ -
+
tilt
+ + +
+ -
+
+
+ ++ + + + + + + + +
Emits when a tilt sensor is activated.
+Parameters:
+ + ++ +
+ + + + ++ + + + + + + +Name + + +Type + + + + + +Description ++ + + + + + + + +port
+ + +string + + + + + + + + + + + +If the event is fired from the Move Hub's in-built tilt sensor, the special port "TILT" is used.
+ + + + + + + + +x
+ + +number + + + + + + + + + + ++ + + + + + + + + +y
+ + +number + + + + + + + + + + ++ -
+
+
+
+
+
+
+
+
- Inherited From: +
-
+
-
+
- + LPF2Hub#event:tilt + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Source: +
-
+
-
+
- + lpf2hub.js, + line 347 + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+