NB-IoT Suite Product Introduction QuickStart User Guide Device Development Guide Application Development Guide Best Practices FAQ Service agreement Update Log

Update of device information

Request format: PUT

URL: http(s)://api.heclouds.com/devices/{device_id}

Note: device_id needs to be replaced to the device ID.

I only want to see examples!!!

http body request parameter

Parameter NameFormatRequired?Description
titlestringNoDevice name
descstringNoDevice description
tagsarray-stringNoDevice tag. There may be one or more device tags. See the example.
locationjsonNoDevice location coordinate, represented by latitude and longitude key-value {“lon” xx “lat” xx}
privateboolNoDevice privacy, determining the visibility of device information in the sharing link of the application editor, true by default
auth_infostringNoAuthentication information. It is recommended to carry the authentication information and set it to the product serial number of the device.
otherjsonNoOther custom information of the device, in the key-value pair format. See the example.

Return Parameters

NameFormatDescription
errnointCall error code, where 0 means success.
error stringError description, where "succ" means success.

Request parameter example

{
    "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"
    }
}

Return example

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

< Acquire the resource list

query device details >

个搜索结果,搜索内容 “

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