AWS IoT Over-the-air Update
v3.0.0
Client library for AWS IoT OTA
OTA_GetState
Get the current state of the OTA agent.
OtaState_t
OTA_GetState
(
void
);
Returns
The current state of the OTA agent.
Example
Check if OTA agent is in suspended state.
// OTA Agent state
OtaState_t
state =
OTA_GetState
();
while
( state != OtaAgentStateSuspended )
{
// Do something while the agent is back to
// the desired state.
state =
OTA_GetState
();
}
OtaState_t
OtaState_t
OTA Agent states.
Definition:
ota.h:108
OTA_GetState
OtaState_t OTA_GetState(void)
Get the current state of the OTA agent.
Definition:
ota.c:3216
Generated by
1.8.20