When a subdevice under a gateway has new features available or vulnerabilities that need to be fixed, firmware update can be quickly performed for it through the device firmware update service.
During the firmware update process, the gateway needs to use the following two topics to communicate with the cloud on behalf of the subdevice:
Below is the sample code:
$ota/report/${productID}/${deviceName}
This topic is used to publish (upstream) messages, through which the device reports the version number and the download/update progress to the cloud.
$ota/update/${productID}/${deviceName}
This topic is used to subscribe to (downstream) messages, through which the device receives the update message from the cloud.
Taking MQTT as an example, the update process of the subdevice is as follows:
Note:For the specific directions of firmware update, please see Device Firmware Update.
Was this page helpful?