Functions | |
NMI_API sint8 | m2m_ota_abort (void) |
Request OTA Abort. More... | |
NMI_API sint8 | m2m_ota_init (tpfOtaUpdateCb pfOtaUpdateCb, tpfOtaNotifCb pfOtaNotifCb) |
Initialize the OTA layer. More... | |
sint8 m2m_ota_abort | ( | void | ) |
Request OTA Abort.
Request the WINC to abort an OTA in progress.
If no download is in progress, the API will respond with failure.
Request the WINC to abort an OTA or Host File download in progress.
If no download is in progress, the API will respond with failure.
sint8 m2m_ota_init | ( | tpfOtaUpdateCb | pfOtaUpdateCb, |
tpfOtaNotifCb | pfOtaNotifCb | ||
) |
Initialize the OTA layer.
Synchronous initialization function for the OTA layer by registering the update callback.
The notification callback is not supported at the current version. Calling this API is a MUST for all the OTA API's.
[in] | pfOtaUpdateCb | OTA Update callback function. |
[in] | pfOtaNotifCb | OTA Notify callback function. |
[in] | pfOtaUpdateCb | OTA Update callback function. |
[in] | pfOtaNotifCb | OTA Notify callback function. |
[in] | pfOtaUpdateCb | OTA Update callback function. |
[in] | pfOtaNotifCb | OTA notify callback function. |
Referenced by main().