BLE_OTAPC_EventId_T

C

typedef enum BLE_OTAPC_EventId_T
{
    BLE_OTAPC_EVT_SEC_REQ = 0x00,
    BLE_OTAPC_EVT_CONNECT_IND,
    BLE_OTAPC_EVT_FEATURE_IND,
    BLE_OTAPC_EVT_REQ_RSP_IND,
    BLE_OTAPC_EVT_START_RSP_IND,
    BLE_OTAPC_EVT_FRAGMENT_COMPL_IND,
    BLE_OTAPC_EVT_COMPLETE_RSP_IND,
    BLE_OTAPC_EVT_ERR_UNSPECIFIED_IND
}BLE_OTAPC_EventId_T;

Description

Enumeration type of BLE OTA profile callback events.

EnumeratorDescription
BLE_OTAPC_EVT_SEC_REQEncryption is required accessing OTA Service characteristic at remote. Application should encrypt the link to perform further OTA operations. See BLE_OTAPC_EvtSecReq_T for event details.
BLE_OTAPC_EVT_CONNECT_INDOTA profile is ready to perform firmware update procedure. BLE_OTAPC_EvtConnectIndInd_T.
BLE_OTAPC_EVT_FEATURE_INDThe supported feature of the OTA server read by BLE_OTAPC_FeatureDisc. See BLE_OTAPC_EvtFeatureIndInd_T for event details.
BLE_OTAPC_EVT_REQ_RSP_INDThe response of BLE_OTAPC_UpdateRequest operation. See BLE_OTAPC_EvtReqRspIndInd_T for event details.
BLE_OTAPC_EVT_START_RSP_INDThe response of BLE_OTAPC_UpdateStart operation. See BLE_OTAPC_EvtStartRspIndInd_T for event details.
BLE_OTAPC_EVT_FRAGMENT_COMPL_INDThe notification of BLE_OTAPC_FragmentDist operation. See BLE_OTAPC_EvtFragmentComplInd_T for event details. Application shall wait this event after the total length of sent fragmented images reaches to max fragmented image size before distributing the next fragmented images. If the length of remaining fragmented image is less than max fragmented image size, application shall wait this event before calling BLE_OTAPC_UpdateComplete.
BLE_OTAPC_EVT_COMPLETE_RSP_INDThe response of BLE_OTAPC_UpdateComplete operation. See BLE_OTAPC_EvtCompleteRspIndInd_T for event details.
BLE_OTAPC_EVT_ERR_UNSPECIFIED_INDProfile internal unspecified error occurs.