K8凯发(中国)

    添加设备
    请求

    http://ip:port/iot/AddDevice?name={$name}&pluginid={$pluginid}&marker={$marker}&ip=

    {$ip}&port ={$port}&username={$username}&password={$password}

    回复

    {

    {"result" :{$result},

    "id":{$id},

    "channelcount":{$channelcount}

    }{

    name 设备名称

    pluginid 插件的 ID 值

    marker 设备标识

    ip 设备 ip

    port 设备端口或串口

    username 用户名

    password 密码

    id 设备的 id

    channelcount 通道数, 一般为 1