OTA_SERVICE_FH_StateGet

C

OTA_SERVICE_FH_STATE OTA_SERVICE_FH_StateGet(void)

Summary

Returns the current state of the File handler state machine.

Description

This function can be used to poll the current state of the File handler state machine

Precondition

None.

Parameters

None.

Returns

Returns the current state of the File handler. One of the value of OTA_SERVICE_FH_STATE enum

Example

if (OTA_SERVICE_FH_StateGet() == OTA_SERVICE_FH_STATE_IDLE)
{
    // Idle state
}

Remarks

None.