根据条件查询检测设备信息
GET
/api-web-v1/checks检测器是物联网设备上的一个单独的传感器,它可以测量某个特定的值,比如温度、湿度、光照强度等。如果您想要查询某个检测器的信息,可以输入一些条件来筛选出符合要求的检测器值,比如设备名称、检测器类型等。接口会返回符合条件的检测器的基本信息。
请求参数
Query 参数
label
string
查询的字段名
示例值:
name
search
string
可选
查询的字段值,支持模糊查询
示例值:
温度A
page
string
可选
分页第几页,指从哪开始查
示例值:
1
limit
string
可选
单页几条数据,指一次查几条
示例值:
2
Header 参数
Authorization
string
必需
示例值:
Bearer {{token}}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
number
是否成功
data
object
返回数据
total
number
可选
rows
array [object {21}]
当前返回的设备对象列表
示例
{
"code": 0,
"data": {
"total": 5,
"rows": [
{
"line": false,
"value": 28,
"valueStr": null,
"boardConfigStr": "{}",
"canRead": true,
"_id": "6453169c78de59a899f75640",
"name": "温度A",
"sort": null,
"company": "℃",
"icon": null,
"interval": null,
"rosterName": null,
"precision": null,
"control": "5feaed768c1afe001bca0f3f",
"parentName": "Hardware",
"parent": {
"line_status": 0,
"tags": [],
"_id": "6453169278de59b200f75614",
"name": "依卓尔00",
"line": false,
"isShow": true,
"type": 3,
"status": 0,
"hardwareWord": "644b8aa45a9eea25157daa1c",
"serialData": {
"_id": "644b8aa45a9eeafa957daa1d",
"comName": null,
"baud": 9600,
"verification": "even",
"stopBit": 1,
"dataBit": 8,
"state": false,
"address": null
},
"attribute": [],
"shortAddress": "00",
"control": "5feaed768c1afe001bca0f3f",
"netMqttDevice": "644a2ee271b80989b416380b",
"creator": "5da994550dc418001b95d36f",
"__v": 0,
"lineTime": "2023-05-05T04:49:05.853Z",
"id": "6453169278de59b200f75614"
},
"shortAddress": "tempA",
"creator": {
"_id": "5da994550dc418001b95d36f",
"trueName": "郑元杰",
"username": "13806650937"
},
"createdAt": "2023-05-04T02:21:16.460Z",
"updatedAt": "2023-05-05T04:49:05.891Z",
"__v": 0,
"valueAt": "2023-05-05T04:08:15.288Z"
},
{
"line": false,
"value": null,
"valueStr": null,
"boardConfigStr": "{}",
"canRead": true,
"_id": "645460275f11cf47c120b21b",
"name": "温度A",
"sort": null,
"company": "℃",
"icon": null,
"interval": null,
"rosterName": null,
"precision": null,
"control": "5feaed768c1afe001bca0f3f",
"shortAddress": "tempA",
"parentName": "Hardware",
"parent": {
"line_status": 0,
"tags": [],
"_id": "6446566f00c14b120e0bb948",
"name": "SDN-M 系列控制恒流一体机01",
"line": false,
"isShow": true,
"type": 3,
"status": 0,
"control": "5feaed768c1afe001bca0f3f",
"netMqttDevice": "6440d8c7d962ad6798f60291",
"shortAddress": "",
"hardwareWord": "644627ad2cdd1c2f8f076cc8",
"serialData": {
"_id": "644627ad2cdd1c087c076cc9",
"comName": null,
"baud": 9600,
"verification": "none",
"stopBit": 1,
"dataBit": 8,
"state": false,
"address": null
},
"attribute": [],
"creator": "5da994550dc418001b95d36f",
"__v": 0,
"lineTime": "2023-04-26T01:29:33.545Z",
"id": "6446566f00c14b120e0bb948"
},
"creator": {
"_id": "5da994550dc418001b95d36f",
"trueName": "郑元杰",
"username": "13806650937"
},
"createdAt": "2023-05-05T01:47:19.282Z",
"updatedAt": "2023-05-05T01:47:19.282Z",
"__v": 0
}
]
}
}
修改于 1 年前