X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/1f682ca2de8df89e3fef0077b33070cf2c85e798..55db57e1ede3c44a3b027cb442fa12e969b37f4b:/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c?ds=inline diff --git a/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c b/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c index 016b43ca3..07172940c 100644 --- a/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c +++ b/Demos/Host/Incomplete/BluetoothHost/BluetoothHost.c @@ -238,6 +238,20 @@ void Bluetooth_DisconnectionComplete(void) Bluetooth_Connection.RemoteAddress[1], Bluetooth_Connection.RemoteAddress[0]); } +/** Bluetooth stack callback event for a Bluetooth ACL Channel connection request. When is callback fires, + * the user application must indicate if the channel connection should be rejected or not, based on the + * protocol (PSM) value of the requested channel. + * + * \param PSM Protocol PSM value for the requested channel + * + * \return Boolean true to accept the channel connection request, false to reject it + */ +bool Bluetooth_ChannelConnectionRequest(uint16_t PSM) +{ + /* Always accept channel connection requests regardless of PSM */ + return true; +} + /** Bluetooth stack callback event for a non-signal ACL packet reception. This callback fires once a connection * to a remote Bluetooth device has been made, and the remote device has sent a non-signalling ACL packet. *