Reporting Attributes


The topic used for reporting the attribute data is consistent with the MQTT protocol: /sys/{productKey}/{deviceKey}/thing/attribute/update.


The complete URL format for measurement point data reporting is https://{HTTP_Broker_URL}/topic/sys/{productKey}/{deviceKey}/thing/attribute/update, where:

  • {productKey} is the product key of the device.

  • {deviceKey} is the device key of the device.

Request Sample


POST /topic/sys/{ProductKey}/{DeviceKey}/thing/attribute/update HTTP/1.1
Host: {HTTP_Broker_URL}
Query-Parameter: sessionId={SessionId}
Content-Type: application/json
body:
{
  "id": "123",
  "version": "1.0",
  "params": {
    "attributes": {
    "attr1": {
        "value": 1.0,
        "value2": 9
      },
    "attr2": 1.02,
    "attr3": [1.02, 2.02, 7.93]
    }
  },
  "method": "thing.attribute.update"
}

Return Sample


body:
{
  "id": "123",
  "code": 200,
  "data": {}
}


See Report Attributes for the parameter descriptions and return codes for the samples above.