GET /api/v1/gateways?_page={page}&_limit={pageSize}
GET /api/v1/gateways?_page=1&_limit=10
status 200
{
"items": [
{
"authType": 1,
"authTypeLabel": "Token",
"blocked": 0,
"createAt": "2018-10-10 15:55:15",
"description": null,
"deviceConsoleIP": null,
"deviceConsolePort": 22,
"deviceConsoleUsername": null,
"deviceCount": 2,
"deviceID": "gw000001",
"deviceStatus": 1,
"deviceStatusLabel": "在线",
"deviceUsername": "gw123456",
"gatewayName": "智能电表网关",
"gatewayProtocol": 1,
"gatewayProtocolLabel": "MQTT",
"hardwareVersion": null,
"id": 207,
"location": null,
"mac": "0e:85:90:67:bb:d8",
"manufacturer": null,
"productID": "ZKyn1N",
"productName": "智能电表",
"serialNumber": null,
"softVersion": null,
"token": "gw123456",
"updateAt": null,
"upLinkNetwork": 1,
"upLinkNetworkLabel": "2G",
"upLinkProtocol": 7,
"upLinkProtocolLabel": "Modbus",
"userIntID": 2
},
{
"authType": 1,
"authTypeLabel": "Token",
"blocked": 0,
"createAt": "2018-10-10 14:38:04",
"description": null,
"deviceConsoleIP": null,
"deviceConsolePort": 22,
"deviceConsoleUsername": null,
"deviceCount": 0,
"deviceID": "97ae4463b4d558489a2d8c3660222659",
"deviceStatus": 0,
"deviceStatusLabel": "离线",
"deviceUsername": "97ae4463b4d558489a2d8c3660222659",
"gatewayName": "1111",
"gatewayProtocol": 4,
"gatewayProtocolLabel": "LoRa",
"hardwareVersion": null,
"id": 206,
"location": null,
"mac": "111111",
"manufacturer": null,
"productID": "ZKyn1N",
"productName": "智能电表",
"serialNumber": null,
"softVersion": null,
"token": "ad50dee6be875f72823a18376ab7b4c3",
"updateAt": null,
"upLinkNetwork": 1,
"upLinkNetworkLabel": "2G",
"upLinkProtocol": 7,
"upLinkProtocolLabel": "Modbus",
"userIntID": 2
}
],
"meta": {
"count": 5,
"limit": 10,
"page": 1
}
}
GET /api/v1/gateways/{gatewayIntIDS}
GET /api/v1/gateways/207
status 200
{
"authType": 1,
"blocked": 0,
"createAt": "2018-10-10 15:55:15",
"createUser": "actorcloud",
"description": null,
"deviceConsoleIP": null,
"deviceConsolePort": 22,
"deviceConsoleUsername": null,
"deviceID": "gw000001",
"deviceStatus": 1,
"deviceUsername": "gw123456",
"gatewayName": "智能电表网关",
"gatewayProtocol": 1,
"gatewayProtocolLabel": "MQTT",
"hardwareVersion": null,
"id": 207,
"location": null,
"mac": "0e:85:90:67:bb:d8",
"manufacturer": null,
"productID": "ZKyn1N",
"productName": "智能电表",
"serialNumber": null,
"softVersion": null,
"token": "gw123456",
"updateAt": null,
"upLinkNetwork": 1,
"upLinkNetworkLabel": "2G",
"upLinkProtocol": 7,
"upLinkProtocolLabel": "Modbus",
"userIntID": 2
}
字段名 | 示例值 | 字段类型 | 说明 |
---|---|---|---|
authType | 1 | Integer | 认证方式 可选参数: Token: 1, 证书: 2 |
blocked | "null" | Integer | 是否允许访问 0:允许 1:禁止 |
createAt | "2018-10-10 15:55:15" | Date | 创建时间 |
createUser | "actorcloud" | String | 创建用户 |
description | "ull..." | String | 描述 |
deviceConsoleIP | "null" | String | 控制台ip |
deviceConsolePort | 22 | Integer | 控制台端口 |
deviceConsoleUsername | "null" | String | 控制台用户名 |
deviceID | "gw000001" | String | 设备 ID |
deviceStatus | 1 | Integer | 设备运行状态 可选参数: 离线: 0, 在线: 1, 休眠: 2 |
deviceUsername | "gw123456" | String | 设备用户名,用于连接emq |
gatewayName | "智能电表网关" | String | 网关名称 |
gatewayProtocol | 1 | Integer | 网关协议类型 可选参数: MQTT: 1, CoAP: 2, LwM2M: 3, LoRa: 4, HTTP: 5, WebSocket: 6, Modbus: 7 |
gatewayProtocolLabel | "MQTT" | String | 网关协议类型 可选参数: MQTT: 1, CoAP: 2, LwM2M: 3, LoRa: 4, HTTP: 5, WebSocket: 6 |
hardwareVersion | "null" | String | 硬件版本 |
id | 207 | Integer | id |
location | "null" | JSON | 位置 |
mac | "0e:85:90:67:bb:d8" | String | 0e:85:90:67:bb:d8 |
manufacturer | "null" | String | 制造商 |
productID | "ZKyn1N" | String | 产品 ID |
productName | "智能电表" | String | 产品名称 |
serialNumber | "null" | String | 序列号 |
softVersion | "null" | String | 软件版本 |
token | "gw123456" | String | 设备秘钥 |
updateAt | "null" | Date | 更新时间 |
upLinkNetwork | 1 | Integer | 上联网络,可选参数:2G: 1, 3G: 2, 4G: 3, Wi-Fi: 4, NB-IoT: 5 |
upLinkNetworkLabel | "2G" | String | 2G |
upLinkProtocol | 7 | Integer | 上联协议,可选参数: MQTT: 1, CoAP: 2, LwM2M: 3, LoRa: 4, HTTP: 5, WebSocket: 6, Modbus: 7 |
upLinkProtocolLabel | "Modbus" | String | Modbus |
userIntID | 2 | Integer | 用户 ID |
GET /api/v1/devices?gateway={gatewayIntID}&_page={page}&_limit={pageSize}
GET /api/v1/devices?gateway=207&_page=1&_limit=10
status 200
{
"items": [
{
"IMEI": null,
"IMSI": null,
"authType": null,
"authTypeLabel": null,
"autoSub": null,
"blocked": 0,
"carrier": 1,
"cloudProtocol": 1,
"cloudProtocolLabel": "MQTT",
"createAt": "2018-10-11 11:50:31",
"description": null,
"deviceConsoleIP": null,
"deviceConsolePort": 22,
"deviceConsoleUsername": null,
"deviceID": "fc81ad57cf7056e9973f3503242e0dbe",
"deviceName": "智能电表02",
"deviceStatus": 0,
"deviceStatusLabel": "离线",
"deviceType": 1,
"deviceTypeLabel": "终端",
"deviceUsername": "fc81ad57cf7056e9973f3503242e0dbe",
"gateway": 207,
"hardwareVersion": null,
"id": 209,
"latitude": null,
"location": null,
"longitude": null,
"lora": null,
"manufacturer": null,
"physicalNetwork": 1,
"productID": "ZKyn1N",
"productIntID": 132,
"productName": "智能电表",
"scopes": [],
"serialNumber": null,
"softVersion": null,
"tenantID": "C2xPah6mn",
"token": "45e55753676153428dd1bd2ce90a7f2a",
"upLinkSystem": 2,
"updateAt": null,
"userIntID": 2
},
{
"IMEI": null,
"IMSI": null,
"authType": null,
"authTypeLabel": null,
"autoSub": null,
"blocked": 0,
"carrier": 1,
"cloudProtocol": 1,
"cloudProtocolLabel": "MQTT",
"createAt": "2018-10-10 15:59:22",
"description": null,
"deviceConsoleIP": null,
"deviceConsolePort": 22,
"deviceConsoleUsername": null,
"deviceID": "8d05fa80d5be5a42a0c999865222176d",
"deviceName": "智能电表01",
"deviceStatus": 0,
"deviceStatusLabel": "离线",
"deviceType": 1,
"deviceTypeLabel": "终端",
"deviceUsername": "8d05fa80d5be5a42a0c999865222176d",
"gateway": 207,
"hardwareVersion": null,
"id": 208,
"latitude": null,
"location": null,
"longitude": null,
"lora": null,
"manufacturer": null,
"physicalNetwork": 1,
"productID": "ZKyn1N",
"productIntID": 132,
"productName": "智能电表",
"scopes": [],
"serialNumber": null,
"softVersion": null,
"tenantID": "C2xPah6mn",
"token": "1fc74c7e86da5d79b2ecc12feb1f7eaf",
"upLinkSystem": 2,
"updateAt": null,
"userIntID": 2
}
],
"meta": {
"count": 2,
"limit": 10,
"page": 1
}
}
GET /api/v1/gateways/{gatewayInt}/events?_page={page}&_limit={pageSize}
GET /api/v1/gateways/207/events?_page=1&_limit=10
status 200
{
"items": [
{
"IP": null,
"createAt": "2018-10-17 11:44:48",
"deviceID": "gw000001",
"gatewayName": "智能电表网关",
"id": 81288,
"msgTime": "2018-10-17 11:44:48",
"payload": "{\"Telemetry\":[{\"Addr\":52,\"Current\":0.122,\"DeviceID\":\"8d05fa80d5be5a42a0c999865222176d\",\"PowerConsumption\":1.3,\"State\":1,\"TimeStamp\":1539747888,\"Voltage\":237.91},{\"Addr\":1,\"DeviceID\":\"fc81ad57cf7056e9973f3503242e0dbe\",\"State\":1,\"TimeStamp\":1539747888,\"Voltage\":237.9}]}",
"topic": "state",
"updateAt": null
},
{
"IP": null,
"createAt": "2018-10-17 11:44:38",
"deviceID": "gw000001",
"gatewayName": "智能电表网关",
"id": 81285,
"msgTime": "2018-10-17 11:44:38",
"payload": "{\"Telemetry\":[{\"Addr\":52,\"Current\":0.123,\"DeviceID\":\"8d05fa80d5be5a42a0c999865222176d\",\"PowerConsumption\":1.3,\"State\":1,\"TimeStamp\":1539747878,\"Voltage\":237.85},{\"Addr\":1,\"DeviceID\":\"fc81ad57cf7056e9973f3503242e0dbe\",\"State\":1,\"TimeStamp\":1539747878,\"Voltage\":237.9}]}",
"topic": "state",
"updateAt": null
}
],
"meta": {
"count": 21783,
"limit": 10,
"page": 1
}
}
GET /api/v1/gateways/{gatewayInt}/control_logs?_page={page}&_limit={pageSize}
GET /api/v1/gateways/207/control_logs?_page=1&_limit=10
status 200
{
"items": [
{
"createAt": "2018-11-24 15:41:03",
"createUser": "actorcloud",
"deviceIntID": 14641,
"id": 4977,
"payload": {
"channel": [
{
"chndrv": "-",
"chnix": 0,
"chnname": "Dummy",
"chnno": 0,
"chntype": "dmy",
"device": [
{
"tagaddr": "-",
"tagarrsz": 100,
"tagattr": "-",
"taglogtime": 0,
"tagname": "DUMMY",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
}
],
"tcphost": "",
"tcpport": 0,
"ttybaud": 0,
"ttycom": "",
"ttycts": 0,
"ttydata": 0,
"ttymodm": 0,
"ttyorts": 0,
"ttypari": "N",
"ttyrts": 0,
"ttystop": ""
},
{
"chndrv": "simdrv",
"chnix": 1,
"chnname": "Modbus RTU",
"chnno": 1,
"chntype": "tty",
"device": [
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A20884",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A20882",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A20883",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A20881",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A20880",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A20879",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A20878",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A20877",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A20837",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A20840",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A20838",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A20836",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A20984",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A20982",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A20983",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A20981",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A20980",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A20979",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A20978",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A20977",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A20937",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A20940",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A20938",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A20936",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A919584",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A919582",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A919583",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A919581",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A919580",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A919579",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A919578",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A919577",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A919537",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A919540",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A919538",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A919536",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A920384",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A920382",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A920383",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A920381",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A920380",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A920379",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A920378",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A920377",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A920337",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A920340",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A920338",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
},
{
"tagaddr": "None!None",
"tagarrsz": null,
"tagattr": "R0",
"taglogtime": 0,
"tagname": "A920336",
"tagstatus": "NNN",
"tagsubno": 0,
"tagtype": "L",
"tagupdtime": 0
}
],
"tcphost": "",
"tcpport": 0,
"ttybaud": 0,
"ttycom": "com1",
"ttycts": 0,
"ttydata": 6,
"ttymodm": 0,
"ttyorts": 0,
"ttypari": "N",
"ttyrts": 0,
"ttystop": "1"
}
],
"func": 4,
"kbid": "3d58da8c21a45629b55c6b7d94c24442",
"message": [],
"object": [
{
"objattr": [
{
"attdesc": "",
"attid": "*",
"attname": "h",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A20884",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "f",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A20882",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "g",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A20883",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "e",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A20881",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "d",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A20880",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "c",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A20879",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "b",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A20878",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "a",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A20877",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "Current",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A20837",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "State",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A20840",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "PowerConsumption",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A20838",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "Voltage",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A20836",
"unit": ""
}
],
"objdesc": "",
"objid": "*",
"objlogtime": 0,
"objname": "8d05fa80d5be5a42a0c999865222176d",
"objsize": 1,
"objstatus": "NYYN",
"objupdtime": 5
},
{
"objattr": [
{
"attdesc": "",
"attid": "*",
"attname": "h",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A20984",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "f",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A20982",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "g",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A20983",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "e",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A20981",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "d",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A20980",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "c",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A20979",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "b",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A20978",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "a",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A20977",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "Current",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A20937",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "State",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A20940",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "PowerConsumption",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A20938",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "Voltage",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A20936",
"unit": ""
}
],
"objdesc": "",
"objid": "*",
"objlogtime": 0,
"objname": "fc81ad57cf7056e9973f3503242e0dbe",
"objsize": 1,
"objstatus": "NYYN",
"objupdtime": 5
},
{
"objattr": [
{
"attdesc": "",
"attid": "*",
"attname": "h",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A919584",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "f",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A919582",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "g",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A919583",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "e",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A919581",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "d",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A919580",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "c",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A919579",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "b",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A919578",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "a",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A919577",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "Current",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A919537",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "State",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A919540",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "PowerConsumption",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A919538",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "Voltage",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A919536",
"unit": ""
}
],
"objdesc": "",
"objid": "*",
"objlogtime": 0,
"objname": "2b2124080f5e50848b5890242481615d",
"objsize": 1,
"objstatus": "NYYN",
"objupdtime": 5
},
{
"objattr": [
{
"attdesc": "",
"attid": "*",
"attname": "h",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A920384",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "f",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A920382",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "g",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A920383",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "e",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A920381",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "d",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A920380",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "c",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A920379",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "b",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A920378",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "a",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A920377",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "Current",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A920337",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "State",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A920340",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "PowerConsumption",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A920338",
"unit": ""
},
{
"attdesc": "",
"attid": "*",
"attname": "Voltage",
"attstatus": "NYYN",
"attsubno": 0,
"atttype": null,
"decimal": 0,
"maxval": 0,
"minval": 0,
"notag": 1,
"objix": 0,
"objprefix": "*",
"objsuffix": "*",
"preset": 0,
"tagix": 0,
"tagname": "A920336",
"unit": ""
}
],
"objdesc": "",
"objid": "*",
"objlogtime": 0,
"objname": "9a4a447a1530551ba565b1e093bfaf10",
"objsize": 1,
"objstatus": "NYYN",
"objupdtime": 5
}
]
},
"publishStatus": 1,
"publishStatusLabel": "已下发",
"topic": "dd4a15e5d18d5154982ac4c5b2ae6104/Request",
"updateAt": "2018-11-24 15:41:05",
"userIntID": 2
}
],
"meta": {
"count": 1,
"limit": 10,
"page": 1
}
}
GET /api/v1/gateways/{gatewayInt}/devices_data?_page={page}&_limit={pageSize}
GET /api/v1/gateways/207/devices_data?_page=1&_limit=10
status 200
{
"items": [
{
"dataPointID": "a",
"dataPointName": "a",
"deviceID": "9a4a447a1530551ba565b1e093bfaf10",
"deviceIntID": 9203,
"deviceName": "智能电表04",
"eventValue": 111,
"msgTime": "2018-11-12 18:00:02:55",
"stringValue": null
}
],
"meta": {
"count": 1,
"limit": 10,
"page": 1
}
}
POST /api/v1/gateways
POST /api/v1/gateways
{
"gatewayProtocol": 1,
"gatewayName": "默认网关",
"gatewayMAC": "10c61f1a1f47",
"location": "北京",
"manufacturer": "江南",
"productID": "ZKyn1N",
"serialNumber": "10c61f1a1f47",
"softVersion": "v 1.2",
"hardwareVersion": "v 1.1",
"consoleIP": "192.168.33.1",
"consoleUsername": "root",
"consolePort": "22",
"description": "desc",
"upLinkNetwork": 1,
"upLinkProtocol": 7
}
status 201
{
"consoleIP": "192.168.33.1",
"consolePort": 22,
"consoleUsername": "root",
"createAt": "2018-09-30 16:45:39",
"description": "desc",
"gatewayMAC": "10c61f1a1f47",
"gatewayName": "默认网关",
"gatewayProtocol": 1,
"hardwareVersion": "v 1.1",
"id": 10,
"location": "北京",
"manufacturer": "江南",
"productID": "ZKyn1N",
"productName": "智能电表",
"serialNumber": "10c61f1a1f47",
"softVersion": "v 1.2",
"updateAt": null,
"upLinkNetwork": 1,
"upLinkNetworkLabel": "2G",
"upLinkProtocol": 7,
"upLinkProtocolLabel": "Modbus",
"userIntID": 23
}
PUT /api/v1/gateways/{gatewayIntIDS}
PUT /api/v1/gateways/10
{
"consoleIP": "192.168.33.1",
"consolePort": 22,
"consoleUsername": "root",
"createAt": "2018-09-30 16:45:39",
"createUser": "ActorCloud",
"description": "desc",
"gatewayMAC": "10c61f1a1f47",
"gatewayName": "默认网关2",
"gatewayProtocol": 1,
"gatewayProtocolLabel": "MQTT",
"hardwareVersion": "v 1.1",
"id": 10,
"location": "北京",
"manufacturer": "江南",
"productID": "ZKyn1N",
"serialNumber": "10c61f1a1f47",
"softVersion": "v 1.2",
"updateAt": null,
"upLinkNetwork": 1,
"upLinkProtocol": 7,
"userIntID": 23
}
status 200
{
"consoleIP": "192.168.33.1",
"consolePort": 22,
"consoleUsername": "root",
"createAt": "2018-09-30 16:45:39",
"description": "desc",
"gatewayMAC": "10c61f1a1f47",
"gatewayName": "默认网关2",
"gatewayProtocol": 1,
"hardwareVersion": "v 1.1",
"id": 10,
"location": "北京",
"manufacturer": "江南",
"productID": "ZKyn1N",
"productName": "智能电表",
"serialNumber": "10c61f1a1f47",
"softVersion": "v 1.2",
"updateAt": "2018-09-30 16:46:05",
"upLinkNetwork": 1,
"upLinkNetworkLabel": "2G",
"upLinkProtocol": 7,
"upLinkProtocolLabel": "Modbus",
"userIntID": 23
}
DELETE /api/v1/gateways?ids={gatewayIntIDS}
DELETE /api/v1/gateways?ids=10
status 204
""