This module contains common APIs declarations. 
 
signed char sint8
Range of values between -128 to 127. 
 
This module contains WINC3400 M2M driver APIs declarations. 
 
NMI_API sint8 m2m_ota_notif_check_for_update(void)
check for ota update 
 
NMI_API sint8 m2m_ota_notif_sched(uint32 u32Period)
Schedule OTA update. 
 
NMI_API sint8 m2m_ota_start_update(uint8 *u8DownloadUrl)
Request OTA start update using the downloaded url. 
 
NMI_API sint8 m2m_ota_rollback(void)
Request OTA Rollback image. 
 
WINC3400 IoT Application Interface Internal Types. 
 
NMI_API sint8 m2m_ota_notif_set_url(uint8 *u8Url)
Set the OTA url. 
 
This struct contains the OTA update information. 
 
void(* tpfOtaUpdateCb)(uint8 u8OtaUpdateStatusType, uint8 u8OtaUpdateStatus)
A callback to get OTA status update, the callback provides the download status, the switch to the dow...
 
NMI_API sint8 m2m_ota_switch_firmware(void)
Switch to the upgraded Firmware. 
 
unsigned long uint32
Range of values between 0 to 4294967295. 
 
void(* tpfOtaNotifCb)(tstrOtaUpdateInfo *pstrOtaUpdateInfo)
A callback to get notification about a potential OTA update. 
 
unsigned char uint8
Range of values between 0 to 255. 
 
NMI_API sint8 m2m_ota_init(tpfOtaUpdateCb pfOtaUpdateCb, tpfOtaNotifCb pfOtaNotifCb)
Initialize the OTA layer. 
 
NMI_API sint8 m2m_ota_abort(void)
Request OTA Abort.