文档
测试

数据接收接口

POST
http://120.92.9.125:19356/rec/bed

请求参数

参数名
类型
描述
必填
sign
string
加密方式:md5(key+timestamp)
必填
timestamp
int
10位时间戳,示例:1622988909
必填
did
int
设备id,示例:12345678910
必填
time
int
设备10位时间戳,示例:1622988910
必填
value
string
数据值,示例:00-01-00-04
可选
posture
string
睡姿,示例:爬睡
可选
status
int
状态:1-睡眠开始,2-睡眠结束,示例:1
必填

响应参数

参数名
类型
描述
必填
code
int
示例:0
必填
msg
string
示例:成功
必填

返回示例

```language { "code": 0, "msg": "成功" } ```