简要描述:
- 添加产品接口配置
请求URL:
[http://120.26.60.111:10000/v1/api/connector/add](http://127.0.0.1:9090/v1/api/device/add)
请求方式:
- POST/JSON
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| productKey | 是 | string | 产品Key,6位长度 |
| com | 是 | int | 1:com1,2:com2 |
| serialPort | 是 | int | 串口,0:232、1:422、2:485 |
| baud | 是 | long | 波特率 |
| dataBit | 是 | int | 数据位,一般为:8 |
| stopBit | 是 | int | 停止位 |
| parityType | 是 | int | 奇偶校验位,0:无、1:奇校验、2:偶校验 |
| frame | 是 | long | 帧间隔,单位:毫秒 |
| protocol | 是 | int | 通信协议,1:modbus、2:modbus rtu…. |
返回示例
{"code": 10000,"msg": "ok","data": null}
