Modifying a Customized Asset Tag

After modifying a customized asset tag, you can check whether the modification is successful by referring to Reporting Static System Information.

Message instance

{
    "header": {
        "msg_id": "741aec66-99b2-4d97-aaf2-63d27f53bbc5",
        "parent_msg_id": "",
        "sync": false
    },
    "route": {
        "source": "EdgeManager",
        "group": "hardware",
        "operation": "update",
        "resource": "websocket/tag"
    },
    "content": {
    }
}

Parameter description

content:

{
    "asset_tag": "xxxxx"
}

The result is returned through the common interface, and a static information report is successfully triggered. You are advised to set the upper-layer timeout interval to 60s.

Elements are defined as follows:

Level-1 Resource

Description

Type

Value Range

asset_tag

Customized asset tag

string

The value ranges from 1 to 256 bytes and cannot be empty. Chinese characters are not supported. The value must be visible ASCII characters, including a–z, A–Z, 0–9, and English punctuation marks (that is, characters whose ASCII code ranges from 0x20 to 0x7E).

Result returned

{
    "header":{
        "msg_id":"8a44d9c0-05c9-4325-b530-fa5c4a5145f2",
        "parent_msg_id": "",
        "timestamp":1652269263083,
        "sync": false
    },
    "route":{
        "source":"hardware",
        "group":"hub",
        "operation":"update",
        "resource":"websocket/config_result"
    },
    "content":"{"topic": "tag", "percentage": "100%", "result": "success", "reason": ""}"
}