1. API接口
Thinglinks-iot
  • API接口
    • 登录接口
      POST
    • 指令下发
      POST
    • 设备列表
      GET
    • 产品列表
      GET
    • 分组列表
      GET
    • 设备指令列表
      GET
    • 设备最新数据
      GET
    • 物模型列表
      GET
  1. API接口

设备列表

开发中
GET
/business/device/list

请求参数

Query 参数

Header 参数

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://47.109.145.72:28082/prod-api/business/device/list?pageNum&pageSize&deviceName&deviceSn&productSn&status&groupCode' \
--header 'authorization: eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImxvZ2luX3VzZXJfa2V5IjoiZDRjMDZlNDMtMzE4MS00Nzc0LWJmZjEtY2IwNzM4Nzc0NTZhIn0.U3qGc0yPPDKlDQvnResl1blYql3A1_nKODgQmeyFvzjfJ7Mne8gRlyh0cAVoQY6MicwttxxMHycaCqWMJ7zWhg' \
--header 'api-key: eyJhbGciOiJSUzI1NiIsImtpZCI6IjNlNzk2NDZjNGRiYzQwODM4M2E5ZWVkMDlmMmI4NWFlIn0.eyJqdGkiOiJfUnNJQzNwYmhwa1prWVp4R3cwMGlnIiwiaWF0IjoxNzY5NjY1NjQwLCJuYmYiOjE3Njk2NjU2NDAsInN1YiI6ImxvZ2luIiwiYXVkIjoiQXVkaWVuY2UiLCJ1c2VyTmFtZSI6ImFkbWluIiwiYXBpS2V5SWQiOjF9.FqT7YZwMydkImu1dcsoq-Lk-aD7Hpr305BvNAyTOd4t7NULGHdLF3FBT3X4MbuOIXKBmRgDHMvuCGYicFqXXoapoCVOIy-EMV-E_Cd6m6wSvyQvqfLgo3fqdLJbsMYk4mSsezE1b3hUj8g_2bpRiZ2PQN9eVO32E4MXQ1s_jFR4mMZ-JGmiigtYISb6QlghFM244ClnqJt5IYGkwfJX4DtsVsLVdrcf-0xoxotZe9O59D3tMInznUu_ui1NmoKcIqpqEtCyNMPd2WxALP7-UC-iYDN0k4gl16ZLo4jGXxJUUdBicabtV3-2akPUhhhdvAs-k26iV352IQvfzvPJ58w'

返回响应

🟢200成功
application/json
Body

示例
{
    "total": 16,
    "rows": [
        {
            "id": "1998569574788235265",
            "deviceSn": "SW_01",
            "deviceName": "水位检测仪1号",
            "productId": "1998568066453602306",
            "productName": "水位检测仪",
            "productSn": "SW_PRODUCT",
            "linkMethodId": null,
            "linkMethodName": null,
            "componentId": "1998564935472775169",
            "componentName": "水位检测仪组件",
            "protocolId": "1998567823599206401",
            "protocolName": "水位检测仪",
            "status": "1",
            "createBy": "admin",
            "createTime": "2025-12-10 09:44:53",
            "updateBy": null,
            "updateTime": null,
            "remark": null,
            "timeoutSeconds": 60,
            "deviceType": "1",
            "regularCleaning": "0",
            "retentionTime": 1,
            "retentionUnit": null,
            "customConfig": null,
            "position": "106.570335,29.556235",
            "positionName": "重庆市渝中区解放碑街道宏声巷德兴里小区",
            "slaveId": null,
            "modbusRead": "0",
            "groupCode": null,
            "groupName": null
        },
        {
            "id": "1998575058660360193",
            "deviceSn": "HJ_01",
            "deviceName": "环境检测仪1号",
            "productId": "1998562969057230849",
            "productName": "环境检测仪",
            "productSn": "HJ_PRODUCT",
            "linkMethodId": null,
            "linkMethodName": null,
            "componentId": "1998562852543660033",
            "componentName": "环境检测仪",
            "protocolId": "1998562616433704961",
            "protocolName": "环境监测仪协议",
            "status": "0",
            "createBy": "admin",
            "createTime": "2025-12-10 10:06:40",
            "updateBy": null,
            "updateTime": null,
            "remark": null,
            "timeoutSeconds": 60,
            "deviceType": "0",
            "regularCleaning": "0",
            "retentionTime": 1,
            "retentionUnit": null,
            "customConfig": null,
            "position": "110.400896,30.937276",
            "positionName": "湖北省恩施土家族苗族自治州巴东县茶店子镇大槽",
            "slaveId": null,
            "modbusRead": "0",
            "groupCode": null,
            "groupName": null
        },
        {
            "id": "2001907629036154881",
            "deviceSn": "ywy",
            "deviceName": "ywy-test",
            "productId": "2001907294745931778",
            "productName": "测试液位设备",
            "productSn": "ywy-test",
            "linkMethodId": null,
            "linkMethodName": null,
            "componentId": "2000756073729372162",
            "componentName": "测试",
            "protocolId": "1998562616433704961",
            "protocolName": "环境监测仪协议",
            "status": "0",
            "createBy": "admin",
            "createTime": "2025-12-19 14:49:07",
            "updateBy": null,
            "updateTime": null,
            "remark": null,
            "timeoutSeconds": 60,
            "deviceType": "2",
            "regularCleaning": "1",
            "retentionTime": 1,
            "retentionUnit": "day",
            "customConfig": "11",
            "position": null,
            "positionName": null,
            "slaveId": null,
            "modbusRead": "0",
            "groupCode": null,
            "groupName": null
        },
        {
            "id": "2007367709235884034",
            "deviceSn": "modbus_001",
            "deviceName": "modbus测试设备",
            "productId": "2007367435943424002",
            "productName": "modbus产品",
            "productSn": "modbus_1",
            "linkMethodId": null,
            "linkMethodName": null,
            "componentId": "2007705812056158210",
            "componentName": "modbus组件",
            "protocolId": "1998567823599206401",
            "protocolName": "水位检测仪",
            "status": "0",
            "createBy": "admin",
            "createTime": "2026-01-03 16:25:32",
            "updateBy": null,
            "updateTime": null,
            "remark": null,
            "timeoutSeconds": 60,
            "deviceType": "2",
            "regularCleaning": "0",
            "retentionTime": 1,
            "retentionUnit": null,
            "customConfig": null,
            "position": "116.380221,39.906189",
            "positionName": "北京市西城区西长安街街道西长安街地税所北京市西城区红墙意识教育基地",
            "slaveId": 1,
            "modbusRead": "0",
            "groupCode": null,
            "groupName": null
        },
        {
            "id": "2010537661874413569",
            "deviceSn": "mqtt_001",
            "deviceName": "MQTT测试",
            "productId": "2010537376087121921",
            "productName": "MQTT",
            "productSn": "mqtt_01",
            "linkMethodId": null,
            "linkMethodName": null,
            "componentId": "2010965102082236418",
            "componentName": "mqtt1",
            "protocolId": "2009562099471196161",
            "protocolName": "mqtt协议",
            "status": "1",
            "createBy": "admin",
            "createTime": "2026-01-12 10:21:47",
            "updateBy": null,
            "updateTime": null,
            "remark": null,
            "timeoutSeconds": 60,
            "deviceType": "0",
            "regularCleaning": "0",
            "retentionTime": 1,
            "retentionUnit": null,
            "customConfig": null,
            "position": null,
            "positionName": null,
            "slaveId": null,
            "modbusRead": "0",
            "groupCode": null,
            "groupName": null
        },
        {
            "id": "2011000951129874434",
            "deviceSn": "mqtt_00103",
            "deviceName": "mqtt_00103",
            "productId": "2010965510544531457",
            "productName": "温湿度传感器",
            "productSn": "温湿度传感器",
            "linkMethodId": null,
            "linkMethodName": null,
            "componentId": "2010965102082236418",
            "componentName": "mqtt1",
            "protocolId": "2009562099471196161",
            "protocolName": "mqtt协议",
            "status": "0",
            "createBy": "admin",
            "createTime": "2026-01-13 17:02:44",
            "updateBy": null,
            "updateTime": null,
            "remark": null,
            "timeoutSeconds": 60,
            "deviceType": "1",
            "regularCleaning": "0",
            "retentionTime": 1,
            "retentionUnit": null,
            "customConfig": null,
            "position": null,
            "positionName": null,
            "slaveId": null,
            "modbusRead": "0",
            "groupCode": null,
            "groupName": null
        },
        {
            "id": "2011001107707437057",
            "deviceSn": "mqtt_00101",
            "deviceName": "mqtt_00101",
            "productId": "2010965510544531457",
            "productName": "温湿度传感器",
            "productSn": "温湿度传感器",
            "linkMethodId": null,
            "linkMethodName": null,
            "componentId": "2010965102082236418",
            "componentName": "mqtt1",
            "protocolId": "2009562099471196161",
            "protocolName": "mqtt协议",
            "status": "0",
            "createBy": "admin",
            "createTime": "2026-01-13 17:03:21",
            "updateBy": null,
            "updateTime": null,
            "remark": null,
            "timeoutSeconds": 60,
            "deviceType": "1",
            "regularCleaning": "0",
            "retentionTime": 1,
            "retentionUnit": null,
            "customConfig": null,
            "position": null,
            "positionName": null,
            "slaveId": null,
            "modbusRead": "0",
            "groupCode": null,
            "groupName": null
        },
        {
            "id": "2012427602627764226",
            "deviceSn": "SWJC002",
            "deviceName": "水位检测仪2号",
            "productId": "1998568066453602306",
            "productName": "水位检测仪",
            "productSn": "SW_PRODUCT",
            "linkMethodId": null,
            "linkMethodName": null,
            "componentId": "1998564935472775169",
            "componentName": "水位检测仪组件",
            "protocolId": "1998567823599206401",
            "protocolName": "水位检测仪",
            "status": "0",
            "createBy": "admin",
            "createTime": "2026-01-17 15:31:44",
            "updateBy": null,
            "updateTime": null,
            "remark": null,
            "timeoutSeconds": 60,
            "deviceType": "1",
            "regularCleaning": "0",
            "retentionTime": 1,
            "retentionUnit": null,
            "customConfig": null,
            "position": "116.306295,40.053034",
            "positionName": "西二旗(地铁站)(13号线;昌平线)",
            "slaveId": null,
            "modbusRead": "0",
            "groupCode": "MOREN_DEVICE",
            "groupName": null
        },
        {
            "id": "2012855638049267713",
            "deviceSn": "mqttx_6640c603",
            "deviceName": "mqttx_6640c603",
            "productId": "2012855607351156738",
            "productName": "testauto",
            "productSn": "112313",
            "linkMethodId": null,
            "linkMethodName": null,
            "componentId": "2012855363121029122",
            "componentName": "mqttautotest",
            "protocolId": "2012855145608617985",
            "protocolName": "testauto",
            "status": "0",
            "createBy": null,
            "createTime": "2026-01-18 19:52:36",
            "updateBy": null,
            "updateTime": null,
            "remark": null,
            "timeoutSeconds": 60,
            "deviceType": "2",
            "regularCleaning": "0",
            "retentionTime": 1,
            "retentionUnit": null,
            "customConfig": null,
            "position": null,
            "positionName": null,
            "slaveId": null,
            "modbusRead": "0",
            "groupCode": null,
            "groupName": null
        },
        {
            "id": "2012858635466678274",
            "deviceSn": "mqttx_2cb22223",
            "deviceName": "mqttx_2cb22223",
            "productId": "2012855607351156738",
            "productName": "testauto",
            "productSn": "112313",
            "linkMethodId": null,
            "linkMethodName": null,
            "componentId": "2012855363121029122",
            "componentName": "mqttautotest",
            "protocolId": "2012855145608617985",
            "protocolName": "testauto",
            "status": "0",
            "createBy": null,
            "createTime": "2026-01-18 20:04:30",
            "updateBy": null,
            "updateTime": null,
            "remark": null,
            "timeoutSeconds": 60,
            "deviceType": "2",
            "regularCleaning": "0",
            "retentionTime": 1,
            "retentionUnit": null,
            "customConfig": null,
            "position": null,
            "positionName": null,
            "slaveId": null,
            "modbusRead": "0",
            "groupCode": null,
            "groupName": null
        }
    ],
    "code": 200,
    "msg": "查询成功"
}
修改于 2026-01-18 13:47:10
上一页
指令下发
下一页
产品列表
Built with