1.2.2.3.4.2.4.6 BLE_OTAPS_UpdateResponse

C

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

Description

Respond peer device after receiving BLE_OTAPS_EVT_UPDATE_REQ event. Application must determinate if allow to start BLE OTA update procedure.

Parameters

ParameterDescription
[in] connHandleHandle of the connection to send response.
[in] isAllowSet true if application allows device firmware update procedure, otherwise set false.
[in] p_devInfoPointer to the current device information. See BLE_OTAPS_DevInfo_T in detail. The information would be sent to peer device if isAllow is set to true. It would be ignored if isAllow is set to false.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully send response.
MBA_RES_OOMMemory not available to send response.
MBA_RES_INVALID_PARAInvalid parameters. Connection handle is not valid.
MBA_RES_BAD_STATEApplication should not call this API in current OTA progress.