Reporting the Measurement Point (HTTP)


The topic used for reporting the measurement point data is consistent with the MQTT protocol: /sys/{productKey}/{deviceKey}/thing/measurepoint/post.


The complete URL format for measurement point data reporting is https://{HTTP_Broker_URL}/topic/sys/{productKey}/{deviceKey}/thing/measurepoint/post, 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/measurepoint/post HTTP/1.1
Host: {HTTP_Broker_URL}
Query-Parameter: sessionId={SessionId}
Content-Type: application/json
body:
{
    "id":"123",
    "version":"1.0",
    "params":{
        "measurepoints":{
            "Power":{
                "value":1,
                "quality":9
            },
            "temp":1.02,
            "branchCurr":[
                "1.02",
                "2.02",
                "7.93"
            ]
        },
        "time":123456
    },
    "method":"thing.measurepoint.post"
}

Return Sample

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


See Report Device Measurement Points for the parameter descriptions and return codes for the samples above.