简要描述:

    • 添加产品接口配置

    请求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….

    返回示例

    1. {
    2. "code": 10000,
    3. "msg": "ok",
    4. "data": null
    5. }