Resume OTA agent operations .
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:73
OtaErr_t OTA_Resume(void)
Resume OTA agent operations .
Definition: ota.c:3399
- Returns
- OtaErrNone if successful, otherwise an error code prefixed with 'OtaErr' from the list above.
Example Resume the OTA agent after the network errors are resolved.
bool handleReconnect()
{
bool returnStatus = establishConnection();
if( returnStatus == EXIT_SUCCESS )
{
{
}
else
{
}
returnStatus = false;
}
return returnStatus;
}
@ OtaAgentEventStart
Start the OTA state machine.
Definition: ota_private.h:344
@ OtaErrUninitialized
The error code has not yet been set by a logic path.
Definition: ota.h:75
@ OtaErrNone
No error occurred during the operation.
Definition: ota.h:74
bool OTA_SignalEvent(const OtaEventMsg_t *const pEventMsg)
Signal event to the OTA Agent task.
Definition: ota.c:2922
OtaState_t OTA_GetState(void)
Get the current state of the OTA agent.
Definition: ota.c:3216
Stores information about the event message.
Definition: ota_private.h:432
OtaEvent_t eventId
Definition: ota_private.h:434