Search
Preparing search index...
The search index is not available
obniz
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Parts
Linking
LinkingServiceSensor
Class LinkingServiceSensor
Hierarchy
LinkingServiceSensor
Index
Properties
SERVICE_
ID
SERVICE_
NAME
Methods
_create
Payload
_create
Payload
Get
Sensor
Info
_create
Payload
Set
Notify
Sensor
Info
_create
Property
Block
Buffer
_parse
Cancel
_parse
Original
Data
_parse
Parameter
_parse
Result
Code
_parse
Sensor
Type
_parse
Status
_parse
X_
threshold
_parse
X_
value
_parse
Y_
threshold
_parse
Y_
value
_parse
Z_
threshold
_parse
Z_
value
create
Request
parse
Payload
set
Device
Info
Object literals
MESSAGE_
NAME_
MAP
Properties
SERVICE_
ID
SERVICE_
ID
:
number
= 3
SERVICE_
NAME
SERVICE_
NAME
:
string
= "PeripheralDeviceSensorInformation"
Methods
_create
Payload
_create
Payload
(
message_name
:
any
, params
:
any
)
:
null
|
Buffer
Parameters
message_name:
any
params:
any
Returns
null
|
Buffer
_create
Payload
Get
Sensor
Info
_create
Payload
Get
Sensor
Info
(
params
:
any
)
:
null
|
Buffer
Parameters
params:
any
Returns
null
|
Buffer
_create
Payload
Set
Notify
Sensor
Info
_create
Payload
Set
Notify
Sensor
Info
(
params
:
any
)
:
null
|
Buffer
Parameters
params:
any
Returns
null
|
Buffer
_create
Property
Block
Buffer
_create
Property
Block
Buffer
(
pid
:
any
, val_buf
:
any
)
:
Buffer
Parameters
pid:
any
val_buf:
any
Returns
Buffer
_parse
Cancel
_parse
Cancel
(
buf
:
any
)
:
{
cancelCode
:
any
;
cancelText
:
string
;
name
:
string
}
Parameters
buf:
any
Returns
{
cancelCode
:
any
;
cancelText
:
string
;
name
:
string
}
cancel
Code
:
any
cancel
Text
:
string
name
:
string
_parse
Original
Data
_parse
Original
Data
(
buf
:
any
, sensor_type
:
any
)
:
{
chargeLevel
:
number
;
chargeRequired
:
boolean
}
|
{
temperature
:
number
}
|
{
humidity
:
number
}
|
{
pressure
:
any
}
|
{
openingCount
:
number
;
openingStatus
:
boolean
}
|
{
humanDetectionCount
:
number
;
humanDetectionResponse
:
boolean
}
|
{
moveCount
:
number
;
moveResponse
:
boolean
}
|
{
illuminance
:
any
}
|
{}
Parameters
buf:
any
sensor_type:
any
Returns
{
chargeLevel
:
number
;
chargeRequired
:
boolean
}
|
{
temperature
:
number
}
|
{
humidity
:
number
}
|
{
pressure
:
any
}
|
{
openingCount
:
number
;
openingStatus
:
boolean
}
|
{
humanDetectionCount
:
number
;
humanDetectionResponse
:
boolean
}
|
{
moveCount
:
number
;
moveResponse
:
boolean
}
|
{
illuminance
:
any
}
|
{}
_parse
Parameter
_parse
Parameter
(
pid
:
any
, buf
:
any
, sensor_type
:
any
)
:
any
Parameters
pid:
any
buf:
any
sensor_type:
any
Returns
any
_parse
Result
Code
_parse
Result
Code
(
buf
:
any
)
:
{
name
:
string
;
resultCode
:
any
;
resultText
:
string
}
Parameters
buf:
any
Returns
{
name
:
string
;
resultCode
:
any
;
resultText
:
string
}
name
:
string
result
Code
:
any
result
Text
:
string
_parse
Sensor
Type
_parse
Sensor
Type
(
buf
:
any
)
:
{
name
:
string
;
sensorTypeCode
:
any
;
sensorTypeText
:
string
}
Parameters
buf:
any
Returns
{
name
:
string
;
sensorTypeCode
:
any
;
sensorTypeText
:
string
}
name
:
string
sensor
Type
Code
:
any
sensor
Type
Text
:
string
_parse
Status
_parse
Status
(
buf
:
any
)
:
{
name
:
string
;
statusCode
:
any
;
statusText
:
string
}
Parameters
buf:
any
Returns
{
name
:
string
;
statusCode
:
any
;
statusText
:
string
}
name
:
string
status
Code
:
any
status
Text
:
string
_parse
X_
threshold
_parse
X_
threshold
(
buf
:
any
)
:
{
name
:
string
;
xThreshold
:
any
}
Parameters
buf:
any
Returns
{
name
:
string
;
xThreshold
:
any
}
name
:
string
x
Threshold
:
any
_parse
X_
value
_parse
X_
value
(
buf
:
any
)
:
{
name
:
string
;
xValue
:
any
}
Parameters
buf:
any
Returns
{
name
:
string
;
xValue
:
any
}
name
:
string
x
Value
:
any
_parse
Y_
threshold
_parse
Y_
threshold
(
buf
:
any
)
:
{
name
:
string
;
yThreshold
:
any
}
Parameters
buf:
any
Returns
{
name
:
string
;
yThreshold
:
any
}
name
:
string
y
Threshold
:
any
_parse
Y_
value
_parse
Y_
value
(
buf
:
any
)
:
{
name
:
string
;
yValue
:
any
}
Parameters
buf:
any
Returns
{
name
:
string
;
yValue
:
any
}
name
:
string
y
Value
:
any
_parse
Z_
threshold
_parse
Z_
threshold
(
buf
:
any
)
:
{
name
:
string
;
zThreshold
:
any
}
Parameters
buf:
any
Returns
{
name
:
string
;
zThreshold
:
any
}
name
:
string
z
Threshold
:
any
_parse
Z_
value
_parse
Z_
value
(
buf
:
any
)
:
{
name
:
string
;
zValue
:
any
}
Parameters
buf:
any
Returns
{
name
:
string
;
zValue
:
any
}
name
:
string
z
Value
:
any
create
Request
create
Request
(
message_name
:
any
, params
:
any
)
:
null
|
Buffer
Parameters
message_name:
any
params:
any
Returns
null
|
Buffer
parse
Payload
parse
Payload
(
pnum
:
any
, buf
:
any
)
:
any
[]
Parameters
pnum:
any
buf:
any
Returns
any
[]
set
Device
Info
set
Device
Info
(
info
:
any
)
:
void
Parameters
info:
any
Returns
void
Object literals
MESSAGE_
NAME_
MAP
MESSAGE_
NAME_
MAP
:
object
00
00
:
string
= "GET_SENSOR_INFO"
01
01
:
string
= "GET_SENSOR_INFO_RESP"
02
02
:
string
= "SET_NOTIFY_SENSOR_INFO"
03
03
:
string
= "SET_NOTIFY_SENSOR_INFO_RESP"
04
04
:
string
= "NOTIFY_PD_SENSOR_INFO"
Globals
Linking
Linking
Advertising
Linking
Device
LinkingIEEE754
Linking
Service
Linking
Service
Notification
Linking
Service
Operation
Linking
Service
Property
Linking
Service
Sensor
SERVICE_
ID
SERVICE_
NAME
_create
Payload
_create
Payload
Get
Sensor
Info
_create
Payload
Set
Notify
Sensor
Info
_create
Property
Block
Buffer
_parse
Cancel
_parse
Original
Data
_parse
Parameter
_parse
Result
Code
_parse
Sensor
Type
_parse
Status
_parse
X_
threshold
_parse
X_
value
_parse
Y_
threshold
_parse
Y_
value
_parse
Z_
threshold
_parse
Z_
value
create
Request
parse
Payload
set
Device
Info
MESSAGE_
NAME_
MAP
Linking
Service
Setting
Linking
Options
Linking
Params
Generated using
TypeDoc