OVMS3-idf/examples/bluetooth/a2dp_source
Angus Gratton 800bffb8b0 cmake: Add CMakeLists.txt files for all examples
Generating using convert_to_cmake.py, with some minor cleanup
2018-04-30 09:59:20 +10:00
..
main component/bt: remove some error logs which are not error 2018-03-05 19:22:21 +08:00
CMakeLists.txt cmake: Add CMakeLists.txt files for all examples 2018-04-30 09:59:20 +10:00
Makefile component/bt: implement A2DP source 2018-01-09 20:20:52 +08:00
README.md component/bt: implement A2DP source 2018-01-09 20:20:52 +08:00
sdkconfig.defaults component/bt: implement A2DP source 2018-01-09 20:20:52 +08:00

ESP-IDF A2DP-SOURCE demo

Demo of A2DP audio source role

This is the demo for user to use ESP_APIs to use Advanced Audio Distribution Profile in transmitting audio stream

Options choose step: 1. make menuconfig. 2. enter menuconfig "Component config", choose "Bluetooth" 3. enter menu Bluetooth, choose "Bluedroid Enable" 4. enter menu Bluedroid Enable, choose "Classic Bluetooth" 5. select "A2DP" and choose "SOURCE"

In this example, the bluetooth device implements A2DP source. The A2DP sink device to be connected to can be set up with the example "A2DP sink" in another folder in ESP-IDF example directory. For the first step, the device performs device discovery to find a target device(A2DP sink) named "ESP_SPEAKER". Then it initiate connection with the target device. After connection is established, the device then start media transmission. The raw PCM media stream to be encoded and transmited in this example is random sequence therefore continuous noise can be heard if the stream is decoded and played on the sink side. After a period of time, media stream suspend, disconnection and reconnection procedure will be performed.