![]() |
WINC1500 IoT Software APIs
19.5.2
WINC Software API Reference Manual
|
Functions | |
NMI_API sint8 | m2m_ota_start_update (uint8 *u8DownloadUrl) |
NMI_API sint8 | m2m_ota_start_update_crt (uint8 *u8DownloadUrl) |
Detailed Description
Request OTA start update using the downloaded URL, the OTA module will download the OTA image and ensure integrity of the image, and update the validity of the image in control structure. Switching to that image requires calling m2m_ota_switch_firmware API. As a prerequisite m2m_ota_init should be called before using m2m_ota_start().
Request OTA start for cortus application image using the downloaded URL, the OTA module will download the OTA image and ensure integrity of the image, and update the validity of the image in control structure. Switching to that image requires calling m2m_ota_switch_crt API. As a prerequisite m2m_ota_init should be called before using m2m_ota_start_update_crt().
Function Documentation
◆ m2m_ota_start_update()
- Parameters
-
[in] u8DownloadUrl The download firmware URL, you get it from device info according to the application server
- Warning
- Calling this API does not guarantee OTA WINC image update, It depends on the connection with the download server and the validity of the image. If the API response is failure this may invalidate the roll-back image if it was previously valid, since the WINC does not have any internal memory except the flash roll-back image location to validate the downloaded image from
- See also
- m2m_ota_init tpfOtaUpdateCb
- Returns
- The function returns M2M_SUCCESS for successful operations and a negative value otherwise.
Example
The example shows an example of how the OTA image update is carried out.
◆ m2m_ota_start_update_crt()
- Parameters
-
[in] u8DownloadUrl The cortus application image url.
- Warning
- Calling this API does not guarantee cortus application image update, It depends on the connection with the download server and the validity of the image. If the API response is failure this may invalidate the roll-back image if it was previously valid, since the WINC does not have any internal memory except the flash roll-back image location to validate the downloaded image from
- See also
- m2m_ota_init tpfOtaUpdateCb
- Returns
- The function returns M2M_SUCCESS for successful operations and a negative value otherwise.
Generated on Thu Jan 26 2017 22:15:21 for WINC1500 IoT Software APIs by
