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;
}
{
}
}
}