OtaErr_t
The OTA API return status. OTA agent error codes are in the upper 8 bits of the 32 bit OTA error word...
Definition: ota.h:80
OtaErr_t OTA_Suspend(void)
Suspend OTA agent operations .
Definition: ota.c:3558
Suspend OTA agent operations .
- Returns
- OtaErrNone if successful, otherwise an error code prefixed with 'OtaErr' from the list above.
Example Suspend the OTA agent when a network error occurs.
void handleNetworkErrors()
{
int16_t suspendTimeout = 5000U;
{
}
else
{
&& ( suspendTimeout > 0 ) )
{
portSleep( 1000U );
suspendTimeout -= 1000U;
}
{
}
}
}
@ OtaErrNone
No error occurred during the operation.
Definition: ota.h:81
OtaState_t OTA_GetState(void)
Get the current state of the OTA agent.
Definition: ota.c:3408