BLE_OTAPS_UpdateResponse

C

uint16_t BLE_OTAPS_UpdateResponse(uint16_t connHandle, bool isAllow, BLE_OTAPS_DevInfo_T *p_devInfo);

Description

Responds to the peer device after receiving a BLE_OTAPS_EVT_UPDATE_REQ event.

Note

The application must decide whether to allow the start of the BLE OTA update procedure.

Parameters

ParameterDescription
[in] connHandleHandle of the connection to send the response.
[in] isAllowTrue to allow the firmware update, false to deny.
[in] p_devInfoPointer to the device information to be sent if isAllow is true; ignored otherwise. See BLE_OTAPS_DevInfo_T.

Return values

Return valueDescription
MBA_RES_SUCCESSResponse sent successfully.
MBA_RES_OOMInternal memory allocation failure.
MBA_RES_INVALID_PARAthe provided connection handle is not valid.
MBA_RES_BAD_STATEInappropriate OTA state to call this function.