- 小柔享睡
- 用户模块
- 设备模块
- 协议管理
- 版本管理
- 音乐管理
- 睡眠模块
- 阿里云
- 首页
- 意见反馈2.0
- 冥想模块
- gpt
- 配置管理
- 开放平台
获取设备信息
开发中
GET
/api/rlDevice/get/{id}
请求参数
Path 参数
id
string
设备id
示例值:
1
Header 参数
token
string
必需
示例值:
92c38bc4785a4e9da7b91490a5e47efa
channel
string
可选
默认值:
HOSPITAL_SAAS
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
curl --location --request GET '/api/rlDevice/get/1' \
--header 'token: 92c38bc4785a4e9da7b91490a5e47efa' \
--header 'token;' \
--header 'channel: HOSPITAL_SAAS'
返回响应
🟢200成功
application/json
Body
id
integer
id
deviceName
string
设备名称
deviceNumber
string
设备编号
deviceUrl
string
设备封面
deviceType
integer
设备类型
deviceTypeStatus
string
设备状态
status
string
是否连接
semaphore
string
信号
electricQuantity
string
电量
wifiStatus
string
wifi连接状态 Y是 N否
versionNum
string
设备版本号
示例
{
"id": 2,
"memberId": 4,
"deviceName": "香薰",
"deviceNumber": "000002",
"deviceUrl": "",
"electricQuantity ": "电量",
"semaphore": "信号",
"deviceType": 1,
"deviceTypeStatus": "STOP",
"status": "Y"
}
🟢200公共信息
修改于 大约 1 年前