OVMS3-idf/examples/bluetooth/a2dp_gatts_coex
Hrishikesh Dhayagude d9ce0bb705 Modify esp_bt_gap_set_scan_mode() to be able to set connection modes as well as discoverable modes
The current API is insufficient to allow the users to set different combinations of connection and discoverable mode

Users should be able to choose the device modes independently:
1. Connectable-
  i. Non-connectable mode
  ii. Connectable mode

2. Discoverable-
  i. Non-discoverable mode
  ii. Limited discoverable mode
  iii. General discoverable mode
2019-03-13 11:24:00 +05:30
..
main Modify esp_bt_gap_set_scan_mode() to be able to set connection modes as well as discoverable modes 2019-03-13 11:24:00 +05:30
CMakeLists.txt cmake: make main a component again 2018-09-11 09:44:12 +08:00
Makefile Component/bt: add makefile for coex demo 2018-05-30 19:33:52 +08:00
README.md remove executable permission from source files 2018-05-29 20:07:45 +08:00
sdkconfig.defaults Merge branch 'master' into feature/cmake 2018-08-30 18:51:01 +08:00

ESP-IDF A2DP-GATTS_COEX demo

This demo showcases APIs to create a GATT service and A2DP profile and demonstrates BLE and classic Bluetooth coexistence.

The BLE GATT SERVER part of demo creates a GATT service and then starts advertising, waiting to be connected by a GATT client. After the program is started, the GATT client can discover a device named "ESP_COEX_BLE_DEMO". Once a connection is established, GATT client can read or write data to the device. Or GATT client can receive notification or indication data.

The classic bluetooth A2DP part of the demo implements Advanced Audio Distribution Profile to receive an audio stream. After the program is started, other bluetooth devices such as smart phones can discover a device named "ESP_COEX_A2DP_DEMO". Once a connection is established, audio data can be transmitted. This will be visible in the application log including a count of audio data packets.