Task Data
This topic provides the example and description of the event "TASK_DATA".
Trigger condition
When a device creates a OTA task or Config in the Milesight Development Platform, the system will send the task result to the webhook URI using a POST request with a JSON payload.
Example
{
"eventID":"7e666639-a0c7-44ba-b8a1-6f1f76312fae", // The unique ID of this event.
"eventCreatedTime":"1742873820", // The time at which the event occurs.Unit: s
"eventVersion":"1.0",
"eventType":"TASK_DATA" // The event type.
"data":{
"info":{ // Basic information of the total task.
"taskId":1904376944893104130,
"deviceId":1904371063669395457,
"status":"SUCCESS",
"errCode":"",
"subcommand":[ // The status of the sub task.
{
"key":"",
"status":"SUCCESS",
"value":""
}
]
},
"type":"CONFIG", // Type of the task.
}
}
- Task type
-
Type Description CONFIG
The task to apply configuration to devices. OTA
The task to upgrade the devices.