GATTC_HandleValueConfirm
C
uint16_t GATTC_HandleValueConfirm(uint16_t connHandle);
Description
GATT client sends Handle Value Confirmation to the GATT server when it receives a Handle Value Indication. It should be called to send a confirmation only if event GATTC_EVT_HV_INDICATE is received. This event is generated if manual mode is configured (see GATTC_CONFIG_MANUAL_CONFIRMATION) and an indication is received.
Parameters
Parameter | Description |
---|---|
[in] connHandle | Handle of the connection to send Handle Value Confirmation. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully starts the Handle Value Confirmation. |
MBA_RES_FAIL | Operation is not permitted. Either Automatic mode is configured or an Indication was not received. |
MBA_RES_OOM | Out Of Memory. Allocation of memory for internal data structure failed. |
MBA_RES_INVALID_PARA | Invalid parameters. Connection handle is not valid. |