algorithm.package.downloadResult (Algorithm package download result)
algorithm.package.downloadResult: Algorithm package download result
algorithm.package.downloadResult · device scope · message query permission Alarm
What it does
Alarm reported when a download finishes (actions use invoke such as Upgrade algorithm package; progress uses algorithm.package.progress). group_policy: compose merges multiple idents into one msgType. See Event catalog · Overview and common payload · Receive device messages.
Reported fields
Fields inside outputData (not every ident appears together). Platform fields: Overview and common payload.
| Name | Description | Type | When present |
|---|---|---|---|
type | Algorithm package type | enum | Common across idents |
dwnResult | Download result struct (ret, url) | struct | Successful download 338400 |
dwnResult.ret | 0 failure, 1 success | enum | Same as dwnResult |
dwnResult.url | Package URL | text | Same as dwnResult |
url | Package URL (top level) | text | Failure 348800 etc.; no dwnResult |
type values: 1 human; 2 vehicle; 4 pet; 8 parcel; 16–22 same as the upgrade table.
Example
{
"msgType": "algorithm.package.downloadResult",
"deviceId": "TESTIPC000012345",
"productId": "56WGTET2",
"outputData": {
"type": "1",
"dwnResult": {
"ret": "1",
"url": "https://example/pkg.bin"
}
},
"time": 1673406989,
"localTime": "20230111T111629",
"alarmId": "116257862023505xxxx"
}
Minimum permission
The administrator does not need an extra permission on a device they bound. A shared device needs the alarm message permission. A bound sub-user does not. A sub-account needs Alarm. list / search filters out events you are not allowed to see. Algorithm package.
