OTA
Last updated
Was this helpful?
Last updated
Was this helpful?
To indicate it's current software/firmware version, the device publishes message. The server then evaluates whether an update is necessary and, if so, publishes a message on the downlink/ota/json topic:
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 package
x-md5
- HEX-encoded MD5 digest of the OTA package
x-fw-type
- The firmware type
x-fw-ver
- The firmware version string
x-fw-build
- The firmware build time
After installing the update, the device re-connects to Blynk.Cloud and publishes the updated message.