SWRA772 august 2023 CC2564C
The DisconnectLE command is responsible for disconnecting from an LE device. This command returns zero on successful execution and a negative value on all errors. This command requires that a valid Bluetooth Stack ID exists before running.
The only parameter required is the Bluetooth Address of the remote device that is connected.
GAP_LE_Disconnect(BluetoothStackID, BD_ADDR)
int BTPSAPI GAP_LE_Disconnect(unsigned int BluetoothStackID, BD_ADDR_t BD_ADDR)
The GAP_LE_Disconnect function provides the ability to disconnect from a remote device. This function returns zero if successful or a negative return error code if there is an error condition.