@powered-up/protocol
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Current
Sensor
Service
constructor
port
Type
execute
Command
set
Mode
set
Value
For
Mode
parse
Value
Hierarchy
PortService
<
CurrentSensorModeType
>
CurrentSensorService
Index
Constructors
constructor
Properties
port
Type
Methods
execute
Command
set
Mode
set
Value
For
Mode
parse
Value
Constructors
constructor
new
Current
Sensor
Service
(
portType
:
number
)
:
CurrentSensorService
Parameters
portType:
number
Returns
CurrentSensorService
Properties
port
Type
port
Type
:
number
Methods
Protected
execute
Command
execute
Command
(
commandType
:
CommandType
, commandPayload
:
Buffer
)
:
CommandOutput
Parameters
commandType:
CommandType
commandPayload:
Buffer
Returns
CommandOutput
set
Mode
set
Mode
(
modeType
:
CurrentSensorModeType
, valueReportThresholdDelta
:
number
, valueReportEnabled
:
boolean
)
:
ModeOutput
Parameters
modeType:
CurrentSensorModeType
valueReportThresholdDelta:
number
valueReportEnabled:
boolean
Returns
ModeOutput
Protected
set
Value
For
Mode
set
Value
For
Mode
(
modeType
:
CurrentSensorModeType
, value
:
Buffer
)
:
CommandOutput
Parameters
modeType:
CurrentSensorModeType
value:
Buffer
Returns
CommandOutput
Static
parse
Value
parse
Value
(
rawValue
:
Buffer
)
:
number
Parameters
rawValue:
Buffer
Returns
number
Generated using
TypeDoc