1.1.21 Client - OTA APIs
This interface offers OTA (over-the-air) update support.
Direct OTA support is provided by the function WDRV_WINC_OTAUpdateFromURL
which uses HTTP(S) to download an OTA image, write it to NVM memory and verify its validity. Status of the operation is returned by the WDRV_WINC_OTA_STATUS_CALLBACK
type callback provided. Once downloaded and verified the image may be activated by calling WDRV_WINC_OTAImageActivate
.
Image verification is done as part of WDRV_WINC_OTAUpdateFromURL
. Image verification can also be requested separately by calling the function WDRV_WINC_OTAImageVerify
. This is particularly relevant if an OTA image is sourced from another route and provided via the NVM API.
To rollback to a previous image, the current image can be invalidated by calling the function WDRV_WINC_OTAImageInvalidate
.
OTA operation options, such as download timeout, can be configured through the structure WDRV_WINC_OTA_OPTIONS
and applied through the OTA API using the function WDRV_WINC_OTAOptionsSet
.