OTA
OTA package notification
To indicate it's current software/firmware version, the device publishes Firmware and Device Info
message. The server then evaluates whether an update is necessary and, if so, publishes a message on the downlink/ota/json topic:
This message can also be delivered at any time during the device operation, i.e. when Blynk.Air shipment is created or when the Preferred Time
condition is met.
The device must verify whether the update is feasible and then download the OTA package using HTTP
/HTTPS
. Additionally, the HTTP Response Headers provide valuable information:
x-sha256
- Base64-encoded SHA256 digest of the OTA packagex-md5
- HEX-encoded MD5 digest of the OTA packagex-fw-type
- The firmware typex-fw-ver
- The firmware version stringx-fw-build
- The firmware build time
type
, ver
, build
fields are available only if Blynk.Cloud can extract this information (stored as a binary info tag) from the uploaded OTA package file.
After installing the update, the device re-connects to Blynk.Cloud and publishes the updated Firmware and Device Info
message.
Last updated