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
Parameter | Description |
---|---|
[in] connHandle | Handle of the connection to send the response. |
[in] isAllow | True to allow the firmware update, false to deny. |
[in] p_devInfo | Pointer to the device information to be sent if isAllow is true; ignored otherwise. See BLE_OTAPS_DevInfo_T. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Response sent successfully. |
MBA_RES_OOM | Internal memory allocation failure. |
MBA_RES_INVALID_PARA | the provided connection handle is not valid. |
MBA_RES_BAD_STATE | Inappropriate OTA state to call this function. |