三、功能接口章节--设备物联管理与设备建模

三、功能接口章节--设备物联管理与设备建模


1、物联网设备部分

a、获取接入设备数据

接口功能 本接口主要实现查询接入本IOT中继平台的设备信息。

Request URL: http://192.168.0.105:18080/openApi/queryIotDeviceRecord
域名访问URL: http://iotbox.iotrelay.cn:8080/api/openApi/queryIotDeviceRecord

Request Method:  GET

数据提交格式 Query String Parameters

请求头参数 Authorization

请求头参数说明:

参数名类型必须描述
AuthorizationHeader固定值:字符串“Bearer” +“token”组成, "token"为上述登录接口获取的属性值,如:请求头中

“Authorization” : “Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJiNjE3OGVlN2ZhNWM0OWU2ODlmMGEzNjIxNzkxYzk2OCIsInN1YiI6IntcInVzZXJJZFwiOlwiNDlcIixcInVzZXJOYW1lXCI6XCIxMzQzNzE1NjU2OVwiLFwibmlja05hbWVcIjpcIjQ0MDgwMDAwMDAxMTExMDAwMDE3XCJ9IiwiaXNzIjoic2oiLCJpYXQiOjE2OTcxNTk2NjgsImV4cCI6MTY5NzE2MTQ2OH0.4C3GJIF5ejmySHy9l_LmheoCs5jknq17h9tPsZB3dIM”

请求体参数说明:

参数名类型必须描述
deviceIdstring接入设备ID标识,黄色为接入设备ID标识值 “44080000001111000020
此参数非必须项,提交则查询指定ID设备,不填查询所有接入设备数据

正确响应结果示例:

{
  "code": "0",
  "msg": "当前查询条件数据共9条",
  "data": [
                    {
                        "id": "1668070137338527745",
                        "deviceSn": "1686533886638-20001",
                        "deviceName": "智能水表",
                        "manufacturer": "武汉智能水表制造厂",
                        "brand": "智光",
                        "model": "200101-11",
                        "transportProtocol": "7",
                        "createTime": "2023-06-12 09:38:06",
                        "updateTime": "null",
                        "deviceRegTime": "2023-08-12 09:38:06",
                        "lastOnlineTime": "2023-10-12 09:38:06",
                        "status": "1",
                        "isDeleted": "0",
                        "remark": "备注",
                        "deviceId": "44080000001111000020",
                        "onlineStatus": "0"
                    },
                    {
                        "id": "1652585079228186626",
                        "deviceSn": "1682841961075-12222222",
                        "deviceName": "采光仪",
                        "manufacturer": "武汉*****制造厂",
                        "brand": "智光",
                        "model": "200101-11",
                        "transportProtocol": "2",
                        "createTime": "2023-06-12 09:38:06",
                        "updateTime": "null",
                        "deviceRegTime": "2023-08-12 09:38:06",
                        "lastOnlineTime": "2023-10-12 09:38:06",
                        "status": "1",
                        "isDeleted": "0",
                        "remark": "备注",
                        "deviceId": "44080000001111000019",
                        "onlineStatus": "0",
                    },
                       。。。。。。
              ]
}

返回参数说明:

参数名类型描述
idstringID
deviceSnstring设备编号
deviceNamestring设备名称
manufacturerstring设备生产厂家
brandstring设备品牌
modelstring设备型号
transportProtocolstring设备接入方式:1、设备直连modbus协议接入;2、MQTT协议接入;3、http协议接入;4、websocket服务接入;7、coap协议接入;8、第三方平台拉取
createTimedatetime设备添加时间
updateTimedatetime设备修改时间
deviceRegTimedatetime设备注册时间
lastOnlineTimedatetime设备最后在线时间
statusinteger设备状态:0、禁用;1、启用
isDeletedinteger是否逻辑删除 0、否;1、是
deviceIdstring接入设备ID标识,例如 :黄色 "44080000001111000020"为接入设备ID标识值
onlineStatusinteger设备在线状态 0、离线;1、在线
remarkstring备注

错误响应结果示例:

{
  "code": "-1",
  "msg": "fail:数据查询失败"
}
b、获取设备物模型数据

接口功能 本接口主要实现查询本IOT中继平台添加的设备物模型信息。

Request URL: http://192.168.0.105:18080/openApi/queryDeviceModelRecord
域名访问URL: http://iotbox.iotrelay.cn:8080/api/openApi/queryDeviceModelRecord

Request Method: GET

数据提交格式 Query String Parameters

请求头参数 Authorization

请求头参数说明:

参数名类型必须描述
AuthorizationHeader固定值:字符串“Bearer” +“token”组成, "token"为上述登录接口获取的属性值,如:请求头中

“Authorization” : “Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJiNjE3OGVlN2ZhNWM0OWU2ODlmMGEzNjIxNzkxYzk2OCIsInN1YiI6IntcInVzZXJJZFwiOlwiNDlcIixcInVzZXJOYW1lXCI6XCIxMzQzNzE1NjU2OVwiLFwibmlja05hbWVcIjpcIjQ0MDgwMDAwMDAxMTExMDAwMDE3XCJ9IiwiaXNzIjoic2oiLCJpYXQiOjE2OTcxNTk2NjgsImV4cCI6MTY5NzE2MTQ2OH0.4C3GJIF5ejmySHy9l_LmheoCs5jknq17h9tPsZB3dIM”

请求体参数说明:

参数名类型必须描述
deviceIdstring接入设备ID标识,黄色为接入设备ID标识值 “44080000001111000020
此参数非必须项,提交则查询指定ID设备物模型,不填查询所有设备物模型数据

正确响应结果示例:

{
  "code": "0",
  "msg": "当前查询条件数据共9条",
  "data": [
                    {
                        "deviceId": "44080000001111000020",
                        "deviceSn": "1686533886638-20001",
                        "deviceName": "智能水表",
                        "modelPropertiesList": [
                            {
                                  "id": "1706862023251443713",
                                  "propertiesId": "P_1695782510161",
                                  "propertiesName": "累计流量",
                                  "readWriteType": "3",
                                  "functionDescrible": "水表累计流量数",
                                  "propertiesValueDataType": "float_value",
                                  "measurementUnit": "立方米",
                                  "scaleFactor": "1",
                                  "remark": "备注",
                                  "deviceId": "44080000001111000020"
                            },
                            {
                                  "id": "1707306101961216002",
                                  "propertiesId": "P_1695888406309",
                                  "propertiesName": "当天流量",
                                  "readWriteType": "3",
                                  "functionDescrible": "",
                                  "propertiesValueDataType": "float_value",
                                  "measurementUnit": "立方米/日",
                                  "scaleFactor": "1",
                                  "remark": "备注",
                                  "deviceId": "44080000001111000020"
                            },
                                        。。。。。。
                            ],
                        "modelEventList": [
                            {
                                  "id": "1706870477215006721",
                                  "eventId": "E_1695784590868",
                                  "eventName": "关机",
                                  "eventType": "1",
                                  "eventDescrible": "设备关机",
                                  "remark": "备注",
                                  "deviceId": "44080000001111000020"
                            },
                            {
                                  "id": "1706870544625860609",
                                  "eventId": "E_1695784610250",
                                  "eventName": "温度超标",
                                  "eventType": "2",
                                  "eventDescrible": "设备关机",
                                  "remark": "备注",
                                  "deviceId": "44080000001111000020"
                            },
                                        。。。。。。
                            ],
                        "modelFunctionList": [
                            {
                                  "id": "1706869281414742017",
                                  "functionId": "F_1695784302400",
                                  "functionName": "开机",
                                  "functionDescrible": "开机",
                                  "isAsynchronous": "0",
                                  "functionValueDataType": "boolean_value",
                                  "outMeasurementUnit": "bool",
                                  "remark": "备注",
                                  "deviceId": "44080000001111000020"
                            },
                            {
                                  "id": "1706869330228051970",
                                  "functionId": "F_1695784325940",
                                  "functionName": "关机",
                                  "functionDescrible": "关机",
                                  "isAsynchronous": "0",
                                  "functionValueDataType": "boolean_value",
                                  "outMeasurementUnit": "bool",
                                  "remark": "备注",
                                  "deviceId": "44080000001111000020"
                            },
                                        。。。。。。
                            ]
                    },
                    {
                        "deviceId": "44080000001111000019",
                        "deviceSn": "1682841961075-12222222",
                        "deviceName": "采光仪",
                           "modelPropertiesList": [
                            {
                                  "id": "1710221430756483073",
                                  "propertiesId": "P_1696583483495",
                                  "propertiesName": "光照亮度",
                                  "readWriteType": "1",
                                  "functionDescrible": "光照亮度",
                                  "propertiesValueDataType": "float_value",
                                  "measurementUnit": "%",
                                  "scaleFactor": "1",
                                  "remark": "备注",
                                  "deviceId": "44080000001111000019"
                            },
                                        。。。。。。
                            ],
                        "modelEventList": [
                            {
                                  "id": "1710225578575011841",
                                  "eventId": "E_1696584389929",
                                  "eventName": "无光源",
                                  "eventType": "3",
                                  "eventDescrible": "故障",
                                  "remark": "备注",
                                  "deviceId": "44080000001111000019"
                            },
                                        。。。。。。
                            ],
                        "modelFunctionList": [
                            {
                                  "id": "1710224892160385025",
                                  "functionId": "F_1696584326733",
                                  "functionName": "设备故障关机",
                                  "functionDescrible": "下发设备故障关机指令",
                                  "isAsynchronous": "0",
                                  "functionValueDataType": "integer_value",
                                  "outMeasurementUnit": "boolean",
                                  "remark": "下发设备故障关机指令",
                                  "deviceId": "44080000001111000019"
                            },
                                        。。。。。。
                            ]
                    },
                       。。。。。。
              ]
}

返回参数说明:

参数名类型描述
idstringID
deviceIdstring接入设备ID标识,例如 :黄色 "44080000001111000020"为接入设备ID标识值
deviceSnstring设备编号
deviceNamestring设备名称
remarkstring备注
modelPropertiesListarray物模型属性集合标识
propertiesIdstring物模型属性ID标识
propertiesNamestring物模型属性名称
readWriteTypestring读写类型: 1、读;2、写;3、上报
functionDescriblestring物模型属性功能描述
propertiesValueDataTypestring物模型属性值数据类型:integer_value/float_value/string_value/date_value/time_value/json_value
measurementUnitstring物模型属性计量单位
scaleFactorinteger精度(缩放因子,单位的精度:比如温度、湿度以10倍的数值表示,需要把读取的结果/10)
modelEventListarray物模型事件集合标识
eventIdstring物模型事件ID标识
eventNamestring物模型事件名称
eventTypeinteger物模型事件类别, 事件类型:1、信息;2、告警;3、故障
eventDescriblestring物模型事件描述
modelFunctionListarray物模型功能集合标识
functionIdstring物模型功能ID标识
functionNamestring物模型功能名称
isAsynchronousinteger是否异步 1、异步 ;0、否
functionDescriblestring物模型功能描述
functionValueDataTypestring输出参数数据类型(对应 integer_value/float_value/string_value/date_value/time_value/json_value)
outMeasurementUnitstring输出参数数据单位(如:度、米、转每分钟、流量单位、功率单位等

错误响应结果示例:

{
  "code": "-1",
  "msg": "fail:数据查询失败"
}
c、获取物模型属性数据
a) 查询返回物模型属性数据记录总数

接口功能 本接口主要实现查询返回IOT中继平台定义的物模型属性数据记录总数,例如根据时间段,每页数据量大小、指定设备ID 查询返回设备采集上报的温度等属性数据记录数信息。

Request URL: http://192.168.0.105:18080/openApi/queryPropertiesDataRecordCount
域名访问URL: http://iotbox.iotrelay.cn:8080/api/openApi/queryPropertiesDataRecordCount

Request Method: GET

数据提交格式 Query String Parameters

请求头参数 Authorization

请求头参数说明:

参数名类型必须描述
AuthorizationHeader固定值:字符串“Bearer” +“token”组成, "token"为上述登录接口获取的属性值,如:请求头中

“Authorization” : “Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJiNjE3OGVlN2ZhNWM0OWU2ODlmMGEzNjIxNzkxYzk2OCIsInN1YiI6IntcInVzZXJJZFwiOlwiNDlcIixcInVzZXJOYW1lXCI6XCIxMzQzNzE1NjU2OVwiLFwibmlja05hbWVcIjpcIjQ0MDgwMDAwMDAxMTExMDAwMDE3XCJ9IiwiaXNzIjoic2oiLCJpYXQiOjE2OTcxNTk2NjgsImV4cCI6MTY5NzE2MTQ2OH0.4C3GJIF5ejmySHy9l_LmheoCs5jknq17h9tPsZB3dIM”

请求体参数说明:

参数名类型必须描述
deviceIdstring接入设备ID标识,黄色为接入设备ID标识值 “44080000001111000001
propertiesIdstringIOT接入设备物模型属性ID标识,黄色为物模型属性ID标识值 “P_1696583483495”
startDateTimedatime开始时间,"YYYY-MM-DD HH:MM:SS"格式,例如:2023-10-01 00:00:00
endDateTimedatime截止时间,"YYYY-MM-DD HH:MM:SS"格式,例如:2023-10-01 23:23:23
pageSizeinteger每页大小,设置分页每页数据量,最大数值限制10000条

正确响应结果示例:

{
  "code": "0",
  "msg": "当前查询条件数据共4条,每页10000条,合计1页",
  "data": {
           "msg": "当前查询条件数据共4条,每页10000条,合计1页",
           "success": "true",
           "count": "4",
           "pageSize": "10000",
           "pageNum": "1"
            }
}

返回参数说明:

参数名类型描述
msgstring返回结果信息说明
countinteger符合条件的数据记录总条数
pageSizeinteger每页大小
pageNuminteger按当前每页大小可分多少页

错误响应结果示例:

{
  "code": "-1",
  "msg": "fail:数据查询失败"
}
b) 查询返回物模型属性数据记录

接口功能 本接口主要实现查询接入设备向本中继平台上报的或本IOT中继本平台从接入设备读取的物模型属性数据,根据时间段、设备ID等查询条件返回数据信息。例如:接入设备上报的设备工作温度,读取设备的压力等物模型属性数据。

Request URL: http://192.168.0.105:18080/openApi/queryPropertiesDataRecord
域名访问URL: http://iotbox.iotrelay.cn:8080/api/openApi/queryPropertiesDataRecord

Request Method: GET

数据提交格式  Query String Parameters

请求头参数 ** Authorization**

请求头参数说明:

参数名类型必须描述
AuthorizationHeader固定值:字符串“Bearer” +“token”组成, "token"为上述登录接口获取的属性值,如:请求头中

“Authorization” : “Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJiNjE3OGVlN2ZhNWM0OWU2ODlmMGEzNjIxNzkxYzk2OCIsInN1YiI6IntcInVzZXJJZFwiOlwiNDlcIixcInVzZXJOYW1lXCI6XCIxMzQzNzE1NjU2OVwiLFwibmlja05hbWVcIjpcIjQ0MDgwMDAwMDAxMTExMDAwMDE3XCJ9IiwiaXNzIjoic2oiLCJpYXQiOjE2OTcxNTk2NjgsImV4cCI6MTY5NzE2MTQ2OH0.4C3GJIF5ejmySHy9l_LmheoCs5jknq17h9tPsZB3dIM”

请求体参数说明:

参数名类型必须描述
deviceIdstring接入设备ID标识,黄色为接入设备ID标识值 “44080000001111000017
propertiesIdstringIOT接入设备物模型属性ID标识,黄色为物模型属性ID标识值 “P_1697248637282”
startDateTimedatime开始时间,"YYYY-MM-DD HH:MM:SS"格式,例如:2023-10-01 00:00:00
endDateTimedatime截止时间,"YYYY-MM-DD HH:MM:SS"格式,例如:2023-10-01 23:23:23
pageSizeinteger每页大小,设置分页每页数据量,最大数值限制10000条
queryPageNointeger查询的当前页号

正确响应结果示例:

{
  "code": "0",
  "msg": "当前页查询返回数据共4条,当前页是:1页",
  "data": {
                   "msg": "当前页查询返回数据共4条,当前页是:1页",
                   "propertiesDataRecords":[
                            {
                               "deviceId": "44080000001111000017",
                               "propertiesId": "P_1697248637282",
                               "dataTime": "2023-10-14 10:38:25"
                               "pointName": "溫度"
                               "dataValueDataType": "null"
                               "integerValue": 36
                               "longValue": "null"
                               "floatValue": "null"
                               "doubleValue": "null"
                               "stringValue": "null"
                               "booleanValue": "null"
                               "dateValue": "null"
                               "timeValue": "null"
                               "jsonValue": "null"
                           },
                            {
                               "deviceId": "44080000001111000017",
                               "propertiesId": "P_1697248637282",
                               "dataTime": "2023-10-14 10:51:40"
                               "pointName": "溫度"
                               "dataValueDataType": "null"
                               "integerValue": 37
                               "longValue": "null"
                               "floatValue": "null"
                               "doubleValue": "null"
                               "stringValue": "null"
                               "booleanValue": "null"
                               "dateValue": "null"
                               "timeValue": "null"
                               "jsonValue": "null"
                           },
                            {
                               "deviceId": "44080000001111000017",
                               "propertiesId": "P_1697248637282",
                               "dataTime": "2023-10-14 11:12:33"
                               "pointName": "溫度"
                               "dataValueDataType": "null"
                               "integerValue": 36
                               "longValue": "null"
                               "floatValue": "null"
                               "doubleValue": "null"
                               "stringValue": "null"
                               "booleanValue": "null"
                               "dateValue": "null"
                               "timeValue": "null"
                               "jsonValue": "null"
                           },
                            {
                               "deviceId": "44080000001111000017",
                               "propertiesId": "P_1697248637282",
                               "dataTime": "2023-10-16 11:33:25"
                               "pointName": "溫度"
                               "dataValueDataType": "null"
                               "integerValue": 38
                               "longValue": "null"
                               "floatValue": "null"
                               "doubleValue": "null"
                               "stringValue": "null"
                               "booleanValue": "null"
                               "dateValue": "null"
                               "timeValue": "null"
                               "jsonValue": "null"
                           }
                         ],
                "success": true,
                "count": 4
            }
}

返回参数说明:

参数名类型描述
msgstring返回结果信息说明
countinteger符合条件的数据记录总条数
propertiesDataRecordsarray查询返回的数据集合标识
deviceIdstring设备ID标识
propertiesIdstring物模型属性ID标识
pointNamestring数据(测点)名称
dataTimedataTime数据上报(读取)时间
dataValueDataTypestring数据值类别:对应 integer_value/float_value/string_value/date_value/time_value/json_value
integerValueinteger数据值
float_valuefloat数据值
string_valuestring数据值
date_valuedate数据值
time_valuetime数据值
json_valuejson数据值

错误响应结果示例:

{
  "code": "-1",
  "msg": "fail:查询物模型属性数据失败"
}
d、获取物模型事件数据接口
a) 查询返回物模型事件数据记录总数

接口功能 本接口主要实现获取接入设备向本中继平台上报的物模型事件数据,根据时间段、设备ID等查询条件返回数据记录统计信息。例如:接入设备上报的设备开机、关机、故障、预警等设备事件信息。

Request URL: http://192.168.0.105:18080/openApi/queryEventDataRecordCount
域名访问URL: http://iotbox.iotrelay.cn:8080/api/openApi/queryEventDataRecordCount

Request Method: GET

数据提交格式  Query String Parameters

请求头参数  Authorization

请求头参数说明:

参数名类型必须描述
AuthorizationHeader固定值:字符串“Bearer” +“token”组成, "token"为上述登录接口获取的属性值,如:请求头中

“Authorization” : “Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJiNjE3OGVlN2ZhNWM0OWU2ODlmMGEzNjIxNzkxYzk2OCIsInN1YiI6IntcInVzZXJJZFwiOlwiNDlcIixcInVzZXJOYW1lXCI6XCIxMzQzNzE1NjU2OVwiLFwibmlja05hbWVcIjpcIjQ0MDgwMDAwMDAxMTExMDAwMDE3XCJ9IiwiaXNzIjoic2oiLCJpYXQiOjE2OTcxNTk2NjgsImV4cCI6MTY5NzE2MTQ2OH0.4C3GJIF5ejmySHy9l_LmheoCs5jknq17h9tPsZB3dIM”

请求体参数说明:

参数名类型必须描述
deviceIdstring接入设备ID标识,黄色为接入设备ID标识值 “44080000001111000017
eventIdstringIOT接入设备物模型事件ID标识,黄色为物模型事件ID标识值 “E_1697248913306”
startDateTimedatime开始时间,"YYYY-MM-DD HH:MM:SS"格式,例如:2023-10-01 00:00:00
endDateTimedatime截止时间,"YYYY-MM-DD HH:MM:SS"格式,例如:2023-10-01 23:23:23
pageSizeinteger每页大小,设置分页每页数据量,最大数值限制10000条

正确响应结果示例:

{
  "code": "0",
  "msg": "当前查询条件数据共4条,每页10000条,合计1页",
  "data": {
           "msg": "当前查询条件数据共4条,每页10000条,合计1页",
           "success": "true",
           "count": "4",
           "pageSize": "10000",
           "pageNum": "1"
            }
}

返回参数说明:

参数名类型描述
msgstring返回结果信息说明
countinteger符合条件的数据记录总条数
pageSizeinteger每页大小
pageNuminteger按当前每页大小可分多少页

错误响应结果示例:

{
  "code": "-1",
  "msg": "fail:物模型事件数据查询失败"
}
b) 查询返回物模型事件数据记录

接口功能 本接口主要实现获取接入设备向本中继平台上报的物模型事件数据,根据时间段、设备ID等查询条件返回数据记录信息。例如:接入设备上报的设备开机、关机、故障、预警等设备事件信息。

Request URL: http://192.168.0.105:18080/openApi/queryEventDataRecord
域名访问URL: http://iotbox.iotrelay.cn:8080/api/openApi/queryEventDataRecord

Request Method: GET

数据提交格式  Query String Parameters

请求头参数  Authorization

请求头参数说明

参数名类型必须描述
AuthorizationHeader固定值:字符串“Bearer” +“token”组成, "token"为上述登录接口获取的属性值,如:请求头中

“Authorization” : “Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJiNjE3OGVlN2ZhNWM0OWU2ODlmMGEzNjIxNzkxYzk2OCIsInN1YiI6IntcInVzZXJJZFwiOlwiNDlcIixcInVzZXJOYW1lXCI6XCIxMzQzNzE1NjU2OVwiLFwibmlja05hbWVcIjpcIjQ0MDgwMDAwMDAxMTExMDAwMDE3XCJ9IiwiaXNzIjoic2oiLCJpYXQiOjE2OTcxNTk2NjgsImV4cCI6MTY5NzE2MTQ2OH0.4C3GJIF5ejmySHy9l_LmheoCs5jknq17h9tPsZB3dIM”

请求体参数说明:

参数名类型必须描述
deviceIdstring接入设备ID标识,黄色为接入设备ID标识值 “44080000001111000017
eventIdstringIOT接入设备物模型事件ID标识,黄色为物模型事件ID标识值 “E_1697248913306”
startDateTimedatime开始时间,"YYYY-MM-DD HH:MM:SS"格式,例如:2023-10-01 00:00:00
endDateTimedatime截止时间,"YYYY-MM-DD HH:MM:SS"格式,例如:2023-10-01 23:23:23
pageSizeinteger每页大小,设置分页每页数据量,最大数值限制10000条
queryPageNointeger查询的当前页号

正确响应结果示例:

{
  "code": "0",
  "msg": "当前页查询返回数据共4条,当前页是:1页",
  "data": {
                   "msg": "当前页查询返回数据共4条,当前页是:1页",
                   "eventDataRecords":[
                            {
                               "deviceId": "44080000001111000017",
                               "eventId": "E_1697248913304",
                               "dataTime": "2023-10-14 10:38:25"
                               "pointName": "溫度超高报警"
                               "dataValueDataType": "null"
                               "integerValue": 40
                               "longValue": "null"
                               "floatValue": "null"
                               "doubleValue": "null"
                               "stringValue": "null"
                               "booleanValue": "null"
                               "dateValue": "null"
                               "timeValue": "null"
                               "jsonValue": "null"
                           },
                            {
                               "deviceId": "44080000001111000017",
                               "eventId": "E_1697248913305",
                               "dataTime": "2023-10-14 10:51:40"
                               "pointName": "关机"
                               "dataValueDataType": "null"
                               "integerValue": 36
                               "longValue": "null"
                               "floatValue": "null"
                               "doubleValue": "null"
                               "stringValue": "null"
                               "booleanValue": "null"
                               "dateValue": "null"
                               "timeValue": "null"
                               "jsonValue": "null"
                           },
                            {
                               "deviceId": "44080000001111000017",
                               "eventId": "E_1697248913306",
                               "dataTime": "2023-10-14 11:12:33"
                               "pointName": "故障关机"
                               "dataValueDataType": "null"
                               "integerValue": 61
                               "longValue": "null"
                               "floatValue": "null"
                               "doubleValue": "null"
                               "stringValue": "null"
                               "booleanValue": "null"
                               "dateValue": "null"
                               "timeValue": "null"
                               "jsonValue": "null"
                           },
                            {
                               "deviceId": "44080000001111000017",
                               "eventId": "E_1697248913306",
                               "dataTime": "2023-10-16 11:33:25"
                               "pointName": "故障关机"
                               "dataValueDataType": "null"
                               "integerValue": null
                               "longValue": "null"
                               "floatValue": "80.0"
                               "doubleValue": "null"
                               "stringValue": "null"
                               "booleanValue": "null"
                               "dateValue": "null"
                               "timeValue": "null"
                               "jsonValue": "null"
                           }
                         ],
                "success": true,
                "count": 4
            }
}

返回参数说明:

参数名类型描述
msgstring返回结果信息说明
countinteger符合条件的数据记录总条数
eventDataRecordsarray查询返回的数据集合标识
deviceIdstring设备ID标识
eventIdstring物模型事件ID标识
pointNamestring数据(事件)名称
dataTimedataTime数据上报(读取)时间
dataValueDataTypestring数据值类别:对应 integer_value/float_value/string_value/date_value/time_value/json_value
integerValueinteger数据值
float_valuefloat数据值
string_valuestring数据值
date_valuedate数据值
time_valuetime数据值
json_valuejson数据值

错误响应结果示例:

{
  "code": "-1",
  "msg": "fail:物模型事件数据查询失败"
}


IOT中继宝盒 长按关注宜联科技公众号

QQ在线咨询

点击这里给我发消息 咨询客服专员

QQ咨询

专业咨询

199-4502-1328

电话咨询

微信扫一扫

IOT中继宝盒

微信咨询
返回顶部