简要描述:
- 获取网关配置最新的完整配置,从influxdb中查询
请求URL:
[http://120.26.60.111:10000/v1/api/gateway/qryConfig](http://127.0.0.1:9090/v1/api/device/add)
请求方式:
- POST/JSON
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| deviceId | 是 | string | 设备Id,16位长度 |
| productkey | 是 | string | 产品Key,6位长度 |
返回示例
{"code": 10000,"msg": "ok","data": {"node": "emqx@127.0.0.1","connector": "{\"com\":1,\"baud\":9600,\"parityType\":0,\"protocol\":1,\"stopBit\":2,\"dataBit\":8,\"serialPort\":1,\"Interface\":2,\"frame\":200}","log": "{\"level\":\"debug\",\"online\":\"on\"}","topics": "[{\"topicId\":1,\"period\":1000,\"qos\":1,\"topic\":\"/device/data/up/SwbX3L/m1Yt7vKMtlwHt8cM\",\"period2\":5000,\"factors\":[{\"code\":1,\"cName\":\"温度5\",\"dataType\":1,\"name\":\"wendu\",\"station\":2,\"addr\":100,\"fracDigits\":0},{\"code\":1,\"cName\":\"湿度\",\"dataType\":1,\"name\":\"shidu\",\"station\":2,\"addr\":200,\"fracDigits\":0}]},{\"topicId\":2,\"period\":1000,\"qos\":1,\"topic\":\"/device/produce/up/SwbX3L/m1Yt7vKMtlwHt8cM\",\"period2\":5000,\"factors\":[{\"code\":1,\"cName\":\"日产量\",\"dataType\":1,\"name\":\"amount\",\"station\":2,\"addr\":300,\"fracDigits\":0},{\"code\":1,\"cName\":\"总产量\",\"dataType\":1,\"name\":\"total\",\"station\":2,\"addr\":400,\"fracDigits\":0}]}]","dongle": "{\"period\":5000,\"formula\":1,\"params\":[{\"dataType\":1,\"name\":\"a\",\"addr\":11},{\"dataType\":1,\"name\":\"b\",\"addr\":22},{\"dataType\":1,\"name\":\"c\",\"addr\":33},{\"dataType\":1,\"name\":\"x\",\"addr\":44},{\"dataType\":1,\"name\":\"y\",\"addr\":55}]}","time": "2020-10-25T08:52:10.362+08:00","productKey": "SwbX3L","type": "config","deviceId": "m1Yt7vKMtlwHt8cM"}}
