BLE_GAP_Disconnect

C

uint16_t BLE_GAP_Disconnect(uint16_t connHandle, uint8_t reason);

Description

Terminates an existing connection.

Parameters

ParameterDescription
[in] connHandleConnection handle associated with this connection.
[in] reasonDisconnection reason. See Status definitions.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully issue a disconnection.
MBA_RES_OOMInternal memory allocation failure occurred.
MBA_RES_INVALID_PARAInvalid connection handle.