X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/70983caea5dc6d817c3a887d66a2f43fce535bbd..c37fd0ef91c58003eab6f3a5461d970ea1a22602:/Demos/Host/Incomplete/BluetoothHost/BluetoothEvents.c diff --git a/Demos/Host/Incomplete/BluetoothHost/BluetoothEvents.c b/Demos/Host/Incomplete/BluetoothHost/BluetoothEvents.c index 17cf7ede4..1b7997adc 100644 --- a/Demos/Host/Incomplete/BluetoothHost/BluetoothEvents.c +++ b/Demos/Host/Incomplete/BluetoothHost/BluetoothEvents.c @@ -154,3 +154,16 @@ void Bluetooth_PacketReceived(void* Data, uint16_t DataLen, Bluetooth_Channel_t* break; } } + +/** RFCOMM layer callback for when a packet is received on an open RFCOMM channel. + * + * \param[in] RFCOMMChannel RFCOMM channel that the data was directed to + * \param[in] DataLen Length of the received data, in bytes + * \param[in] Data Pointer to a buffer where the received data is stored + */ +void RFCOMM_DataReceived(RFCOMM_Channel_t* const RFCOMMChannel, uint16_t DataLen, const uint8_t* Data) +{ + /* Write the received bytes to the serial port */ + for (uint8_t i = 0; i < DataLen; i++) + putchar(Data[i]); +}