@powered-up/api
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Current
Sensor
Device
Encoded
Dual
Motor
Encoded
Motor
Hub
Hub
Manager
Motor
Port
RGBLight
Robot
Sensor
Smart
Hub
constructor
a
b
current
Sensor
id
latest
Error
latest
Port
Input
latest
Property
Input
rgb
Light
voltage
Sensor
hub
Type
connected
send
is
Smart
Move
Hub
Smart
Move
Robot
Smart
Robot
Voltage
Sensor
Current
Sensor
Mode
Encoded
Motor
End
State
Encoded
Motor
Mode
Voltage
Sensor
Mode
Rebrickable:
https://rebrickable.com/parts/6253628/
BrickLink:
https://www.bricklink.com/v2/catalog/catalogitem.page?P=28738c01
Hierarchy
Hub
SmartHub
Index
Constructors
constructor
Properties
a
b
current
Sensor
id
latest
Error
latest
Port
Input
latest
Property
Input
rgb
Light
voltage
Sensor
hub
Type
Accessors
connected
Methods
send
is
Constructors
constructor
new
Smart
Hub
(
hubConnection
:
HubConnection
)
:
SmartHub
Parameters
hubConnection:
HubConnection
Returns
SmartHub
Properties
a
a
:
Port
= new Port(A, this)
b
b
:
Port
= new Port(B, this)
current
Sensor
current
Sensor
:
Port
= new Port(CurrentSensor, this)
id
id
:
string
Optional
latest
Error
latest
Error
:
Error
observable
Optional
latest
Port
Input
latest
Port
Input
:
PortInput
observable
Optional
latest
Property
Input
latest
Property
Input
:
PropertyInput
observable
rgb
Light
rgb
Light
:
Port
= new Port(RGBLight, this)
voltage
Sensor
voltage
Sensor
:
Port
= new Port(VoltageSensor, this)
Static
hub
Type
hub
Type
:
number
= 65
Accessors
connected
connected
:
computed
Methods
send
send
(
output
:
Output
)
:
void
Parameters
output:
Output
Returns
void
Static
is
is
(
hub
:
Hub
)
:
boolean
Parameters
hub:
Hub
Returns
boolean
Generated using
TypeDoc