NAYOTA API
  1. 设备分组类接口
NAYOTA API
  • 产品介绍
  • 应用场景
  • 常见问题
  • 生成token凭证
    • 生成token凭证教程
    • 获取token
      POST
  • 入门实例DEMO
    • 获取温度传感器测量数据
    • 获取空开状态数据
    • 获取摄像头图像数据
    • 获取电表统计数据
  • 设备分组类接口
    • 接口调用实例
    • 根据条件查询通用设备信息
      GET
    • 根据条件查询检测设备信息
      GET
    • 根据条件查询控制设备信息
      GET
    • 通过id查询单个设备信息
      GET
    • 通过id查询单个检测设备信息
      GET
    • 通过id查询单个控制设备信息
      GET
  • 数据记录类接口
    • 接口调用实例
    • 通过id查询检测器检测数据记录
      GET
    • 通过id查询控制器控制数据记录
      GET
    • 根据条件查询消息推送记录
      GET
    • 通过id查询视频录制记录
      GET
  • 能耗统计类接口
    • 接口调用实例
    • 根据条件查询设备层级信息
      GET
    • 根据条件查询分项区间信息
      GET
    • 通过id查询设备层级统计数据
      GET
    • 通过id查询分项区间统计数据
      GET
    • 查询单个层级月度能耗统计
      GET
  • 部门层级类接口
    • 根据条件查询部门层级信息
    • 通过id查询单个部门层级信息
  • 图像监控类接口
    • 接口调用实例
    • 根据条件查询人脸信息
    • 根据条件查询摄像头信息
    • 通过id查询单个摄像头信息
  • 用户组织类接口
    • 根据条件查询用户信息列表
    • 通过id查询单个用户信息
  • 未命名接口
    GET
  1. 设备分组类接口

根据条件查询检测设备信息

GET
https://ws.25soft.com/api-web-v1/checks
检测器是物联网设备上的一个单独的传感器,它可以测量某个特定的值,比如温度、湿度、光照强度等。如果您想要查询某个检测器的信息,可以输入一些条件来筛选出符合要求的检测器值,比如设备名称、检测器类型等。接口会返回符合条件的检测器的基本信息。

请求参数

Query 参数
label
string 
查询的字段名
可选
示例值:
name
search
string 
可选
查询的字段值,支持模糊查询
示例值:
温度A
page
string 
可选
分页第几页,指从哪开始查
示例值:
1
limit
string 
可选
单页几条数据,指一次查几条
示例值:
2
Header 参数
Authorization
string 
必需
示例值:
Bearer {{token}}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://ws.25soft.com/api-web-v1/checks' \
--header 'Authorization: Bearer {{token}}'

返回响应

🟢200成功
application/json
Body
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
            }
        ]
    }
}
修改于 2023-07-26 03:10:50
上一页
根据条件查询通用设备信息
下一页
根据条件查询控制设备信息
Built with