Report Tags¶
Upstream
- Request TOPIC:
/sys/{productKey}/{deviceKey}/thing/tag/update
- Reply TOPIC:
/sys/{productKey}/{deviceKey}/thing/tag/update_reply
Sample Request Format¶
{
"id": "123",
"version": "1.0",
"params": [
{
"tagKey": "Temperature",
"tagValue": "36.8"
}
],
"method": "thing.tag.update"
}
Sample Response Format¶
{
"id": "123",
"code": 200,
"data": {}
}
Request Parameter Description¶
Parameter | Type | Mandatory/Optional | Description |
---|---|---|---|
id | String | Optional | The message ID. It is a reserved parameter that is reserved for future use. |
version | String | Mandatory | The version of the protocol. The current version is 1.0. |
params | Object | Mandatory | The parameters used for reporting tags. A request can carry a maximum of 200 parameters. |
method | String | Mandatory | The request method. |
tagKey | String | Mandatory | The tag name.
|
tagValue | String | Mandatory | The value of the tag. |
Response Parameter Description¶
Parameter | Type | Mandatory/Optional | Description |
---|---|---|---|
code | Integer | Mandatory | The return code. “200” indicates that the requested operation is executed successfully. |
data | JSON | Optional | The detailed returned information in JSON format. |