多协议接入 产品介绍 快速入门 用户指南 开发指南
接入地址 API返回码说明 EDP TCP透传 MQTT Modbus HTTP

更新设备信息

请求方式:PUT

URL: http://api.heclouds.com/devices/device_id

device_id:需要替换为设备ID

请求头部

API使用

http body参数

参数名称 格式 是否必须 说明
title string 设备名称
desc string 设备描述
tags array-string 设标签,可为一个或者多个,见示例
location json 设备位置坐标信息,以经纬度键值对表示:{"lon":xx,"lat":xx}
private bool 设备私密性,决定应用编辑器分享链接中设备信息的可见度,默认为true
auth_info string 鉴权信息,建议携带,并设置为设备的产品序列号
other json 其他设备自定义信息,以键值对格式表示,见示例

返回参数

参数名称 格式 说明
errno int 调用错误码,为0表示调用成功
error string 错误描述,为"succ"表示调用成功

请求参数示例

{
    "title": "test_device",
    "desc": "test_desc",
    "tags": ["china", "mobile"],
    "location": {
        "lon": 109,
        "lat": 23.54
    },
    "auth_info": "tes01235n82105",
    "other": {
        "version": "1.0.0",
        "manufacturer": "china mobile"
    }
}

返回示例

{
    "errno": 0,
    "error": "succ"
}

个搜索结果,搜索内容 “

    0 个搜索结果,搜索内容 “