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 the BLE_OTAPS_EVT_UPDATE_REQ event. Application must determinate if allow to start BLE OTA update procedure.
Parameters
Parameter | Description |
---|---|
[in] connHandle | Handle of the connection to send response. |
[in] isAllow | Set true if application allows device firmware update procedure, otherwise set false. |
[in] p_devInfo | Pointer 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 value | Description |
---|---|
MBA_RES_SUCCESS | Successfully send response. |
MBA_RES_OOM | Memory not available to send response. |
MBA_RES_INVALID_PARA | Invalid parameters. Connection handle is not valid. |