- 小柔享睡
- 用户模块
- 设备模块
- 协议管理
- 版本管理
- 音乐管理
- 睡眠模块
- 阿里云
- 首页
- 意见反馈2.0
- 冥想模块
- gpt
- 配置管理
- 开放平台
添加设备连接记录
开发中
POST
/api/rlDeviceLog/add
请求参数
Header 参数
token
string
必需
示例值:
92c38bc4785a4e9da7b91490a5e47efa
channel
string
可选
默认值:
HOSPITAL_SAAS
Body 参数application/json
deviceName
string
设备名称
deviceNumber
string
设备编号
deviceType
integer
设备类型 0 头贴 1香薰 2头枕 3振动床 4一体机
status
string
连接状态 连接Y 断开N
示例
{
"deviceName": "设备1",
"deviceNumber": "41",
"deviceUrl": "http://cdokvehnkm.eg/dowsrdoi",
"deviceType": 0,
"deviceTypeStatus": "STOP",
"status": "Y"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/rlDeviceLog/add' \
--header 'token: 6e6f3a96328f454eb489906b71b5fb23' \
--header 'channel: HOSPITAL_SAAS' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceName": "设备1",
"deviceNumber": "41",
"deviceUrl": "http://cdokvehnkm.eg/dowsrdoi",
"deviceType": 0,
"deviceTypeStatus": "STOP",
"status": "Y"
}'
返回响应
🟢200成功
application/json
Body
id
integer
id
deviceName
string
设备名称
deviceNumber
string
设备编号
deviceType
integer
设备类型