Device Data
This topic provides the example and description of the event "DEVICE_DATA".
Trigger condition
When a device reports data to Milesight Development Platform, the system will send the reported details to the webhook URI using a POST request with a JSON payload.
Example
{
    "eventID":"6167cb40-8e5e-4d53-904f-968928e488a6",    // The unique ID of this event.
    "eventCreatedTime":"1742872448",    // The time at which the event occurs.Unit: s
    "eventVersion":"1.0",
    "eventType":"DEVICE_DATA"    // The event type.
    "data":{
        "deviceProfile":{    // Basic information of the device reporting data.
            "deviceId":"1904371063669395457",
            "sn":"6707E0461016xxxx",
            "devEUI":"24D124707E04xxxx",
            "name":"Demo_device",
            "model":"AM319-HCHO-IR"
        },
        "type":"",   // Type of the reported data. 
        "tslID":"",    // The ID of the reported data in TSL mode.
        "payload"{}
    }
}
                - Reported data type
 - 
                            
Type Description PROPERTYStatic or dynamic information of the device, which describes the device's status or information. For example, the PIR status and collected data of a sensor.
EVENTSpecific occurrences or events related to the device. For example, a People Counting Sensor is set to report upon line-crossing, when the sensor detects a person crossing the line, it will report the related data to Milesight Development Platform.
SERVICEService invocation of the device. For example, reboot the device, and query the historical data of a device.
ONLINEThe device's connectivity status changes to online. OFFLINEThe device's connectivity status changes to offline.