1.2.2.1.1.4.10 BLE_GAP_Disconnect

C

uint16_t BLE_GAP_Disconnect(uint16_t connHandle, uint8_t reason);

Description

Terminate 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.
MBA_RES_INVALID_PARAInvalid connection handle.