POST [Host Server]/api/v1/base/boxDevices
Path | [Host Server]/api/v1/base/boxDevices |
---|---|
Summary | 获取设备 |
Description | 获取BOX下的设备(PLC) |
Consumes | application/json |
Parameters
Name | Description | Parameter Type | Data Type | Default | Required |
---|---|---|---|---|---|
token | 1.请求令牌 | json | string | yes | |
boxId | 2.BOX的ID | json | string | yes |
请求参数示例:
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50Ijoic3VtbWVyIiwiZXhwIjoxNzU3NDg0OTcxLCJpc3MiOiJzY2lvdF9jbG91ZCIsIm5iZiI6MTc1Njg4MDA3MX0.XpzCwo_W0JGpjAg4rciG8pfOatjSuYuZsyaXUnX7Ye0",
"boxId":"6ab728135e53485e9e42bf5595da5bba"
}
Responses JsonResult«DataVo» :
Properties | Type | Description |
---|---|---|
code | integer | 状态码 |
data | DataVo | 数据集,状态success为true时返回,否则为空 |
msg | string | 返回消息 |
success | boolean | 状态 |
DataVo:
Properties | Type | Description |
---|---|---|
name | string | PLC名称 |
deviceId | string | 采集设备ID |
status | boolean | false:离线,true:在线 |
作者:霜蝉科技 创建时间:2025-08-07 10:51
最后编辑:霜蝉科技 更新时间:2025-09-08 14:02
最后编辑:霜蝉科技 更新时间:2025-09-08 14:02