设备上报软固件版本
功能介绍
设备上报软固件版本信息。
Topic
上行: $oc/devices/{device_id}/sys/events/up
参数说明
| 字段名 | 必选/可选 | 类型 | 参数描述 |
|---|---|---|---|
| object_device_id | 可选 | String | 事件对应的最终目标设备,没有携带则表示目标设备即topic中指定的设备 |
| services | 可选 | List<ServiceEvent> | 事件服务列表 |
ServiceEvent定义表
| 字段名 | 必选/可选 | 类型 | 参数描述 |
|---|---|---|---|
| service_id | 必选 | String | $ota |
| event_type | 必选 | String | version_report |
| event_time | 可选 | String | 事件时间 |
| paras | 必选 | Object | 事件参数JSON对象 |
paras参数列表
| 字段名 | 必选/可选 | 类型 | 参数描述 |
|---|---|---|---|
| sw_version | 可选 | String | 软件版本 |
| fw_version | 可选 | String | 固件版本 |
示例
Topic: $oc/devices/{device_id}/sys/events/up
数据格式:
{
"object_device_id": "{object_device_id}",
"services": [{
"service_id": "$ota",
"event_type": "version_report",
"event_time": "20151212T121212Z",
"paras": {
"sw_version": "v1.0",
"fw_version": "v1.0"
}
}]
} Last Article: 平台下发获取版本信息通知
Next Article: 平台下发升级通知
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.