BT Audio 2 Click Example.
Description
This example demonstrates the use of BT Audio 2 click board by reading the commands received from remote device and performing adequate actions accordingly.
The demo application is composed of two sections :
Application Init
Initializes the driver and configures the click board.
Application Task
Reads all the received events and parses them.
Additional Function
- static err_t btaudio2_event_handler ( btaudio2_t *ctx ) - This function handles SPP data event and several BTM state events added in. The other events will just be displayed on the USB UART in hex format.
- Note
- We have used the Serial Bluetooth Terminal smartphone application for the test. A smartphone and the click board must be paired in order to exchange messages with each other. So make sure to pair your device with the click board and connect it to using the Serial Bluetooth Terminal application, then you will be able to send commands listed below.
- Author
- Stefan Filipovic