SWRA770 august 2023 CC2564C
The following function is responsible for closing any ongoing connection. This function returns zero on successful execution and a negative value on all errors.
Including parameters is not necessary when using this command. A parameter has no effect on the outcome of the close command.
HID_Close_Connection(BluetoothStackID, HIDID)
int BTPSAPI HID_Close_Connection(unsigned int BluetoothStackID, unsigned int HIDID)
The following function is responsible for closing a HID connection established through a connection made to a Registered Server or a connection that was made by calling either the HID_Open_Remote_Device() or HID_Open_Remote_Host() functions. This function accepts as input the Bluetooth Stack ID of the Bluetooth Protocol Stack that the HID ID specified by the Second Parameter is valid for. This function returns zero if successful, or a negative return error code if an error occurred. Note that if this function is called with the HID ID of a Local Server, the Server remains registered but the connection associated with the specified HID ID is closed.