update_firmware
action on device side which downloads the firmware and perform the update.
Also publish the progress of OTA via the action status.update_firmware
is as below:
content-length
: The size of the firmware fileurl
: The url from which the firmware file needs to be downloadedversion
The version of the file being downloadedchecksum
and status
fields. These fields are not implemented on cloud.bytebeam.io and are used by some of our enterprise clients
The client needs to download the file at the url extracted from the payload above using https. Mutual TLS is implemented here as well i.e both the server and the client authenticate each other.
The same certificates downloaded in the Connect to Bytebeam cloud section and used for settting up the MQTT connection need to be used here as well.
update_firmware
is received handle it as an OTA action:
./ca_certificate.pem
, ./device_certificate.pem
, ./device_private_key.pem
and ./file.bin
with the full paths of these files on your system.