获取设备数据
POST
GetDeviceRealtimeData
接口描述
获取设备数据
请求参数
响应参数
参数名
类型
描述
必填
ret
int
示例:0
必填
err_code
int
示例:0
必填
msg
string
示例:ok
必填
timestamp
int
最新时间截 示例:1751276747743
必填
mac
string
设备MAC 示例:f4:cf:a2:80:48:14
必填
date
string
数据时间 示例:2025-06-30 17:45:47
必填
id
int
数据ID 即时间截 示例:1751276747743
必填
temperature
int
室内温度 示例:0
必填
humidity
int
相对湿度 示例:0
必填
inbed
boolean
是否在床,true代表在床,false代表不在床 示例:true
必填
body_movement
boolean
是否体动,true代表有体动,false代表没有体动 示例:false
必填
respiration_rate
float
呼吸率 示例:9.5
必填
heart_rate
int
心率 示例:57
必填
respiratory_wave
array
呼吸波形,入参waveform=true时返回 数据列表
可选
heart_rate_wave
array
心电波形,入参waveform=true时返回 数据列表
可选