简要描述:

    • 添加单个设备信息

    请求URL:

    • [http://120.26.60.111:8081/v1/api/device/](http://127.0.0.1:9090/v1/api/device/add)add

    请求方式:

    • POST/JSON

    参数:

    参数名 必选 类型 说明
    id string 设备Id,16位长度
    clientId string 客户端Id,16位长度
    gwSn string 网关序列号
    devSn string 设备序列号
    productKey string 产品Key,6位长度
    password string mqtt登录密码
    plcProtocol string plc协议
    status int 设备状态,0:离线、1:在线、2:报警、3:故障
    isPaid int 尾款是否结清,0:未结清(默认)、1:已结清
    customerId string 设备所属客户Id


    返回示例

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