文档
测试

初始化终端状态-协议

POST
/192.168.1.221/cgi-bin/test.cgi?terminalStatusGet

接口描述

设备终端设备获取

响应参数

参数名
类型
描述
必填
sensors
[Object]
传感器数据信息
必填
sensor
String
传感器名称
必填
value
String
传感器数值(需要传单位)
必填
passeay
String
通道号
必填
status
String
正常(错误信息)
必填
controllers
[Object]
控制器信息
必填
controller
String
控制器名称
必填
status
Int
控制器状态 0.关 1.开
必填
passway
String
通道号
必填
MQTTmessage
[Object]
MQTT信息
必填
name
String
链接名称
必填
status
String
状态 (已连接 未连接)
必填
identification
Object
设备信息
必填
device_identification
String
设备标识
必填
compile_time
String
编译时间
必填
network_state
String
网络状态
必填
device_address
String
设备地址
必填
subnet_mask
String
子网掩码
必填
gateway_address
String
网关地址
必填
first_choiceDNS
String
首选DNS
必填
alternativeDNS
String
备选DNS
必填
system_time
String
系统时间
必填

说明 / 示例

{ "sensors": [ { "sensor": "B肥速", "value": "0L/min", "passwary": 1002, "status": "正常" }, { "sensor": "C肥速", "value": "0L/min", "passwary": 1003, "status": "正常" } ], "controllers": [ { "controller": "电磁阀1", "status": 0, "passway": 2001 }, { "controller": "电磁阀2", "status": 0, "passway": 2002 } ], "MQTTmessage": [ { "name": "欧柯奇网络连接1", "status": "已连接" }, { "name": "欧柯奇网络连接2", "status": "未连接" } ], "identification": { "device_identification": "水肥机001", "compile_time": "2020-06-01 10:11:42", "network_state": "已连接", "device_address": "192.168.10.246", "subnet_mask": "255.255.255.0", "gateway_address": "192.1680.1", "first_choiceDNS": "223.5.5.5", "alternativeDNS": "114.114.114.114", "system_time": "2021-06-08 15:15:48" } }