esp-idf/examples/bluetooth/bluedroid/coex/gattc_gatts_coex
Anton Maklakov b9a549c80b build: remove COMPILER_DISABLE_GCC8_WARNINGS, no longer relevant 2022-05-27 11:40:40 +07:00
..
main components/bt: Update licenses 2021-12-08 10:59:06 +08:00
CMakeLists.txt build_app: make multi target support readable 2020-04-09 16:40:57 +08:00
README.md component/bt: add BLE v5.0 feature for bluedroid host 2021-01-15 17:55:12 +08:00
sdkconfig.defaults examples: fix sdkconfig warnings 2019-11-21 15:36:06 +01:00
sdkconfig.defaults.esp32c3 build: remove COMPILER_DISABLE_GCC8_WARNINGS, no longer relevant 2022-05-27 11:40:40 +07:00
sdkconfig.defaults.esp32s3 build: remove COMPILER_DISABLE_GCC8_WARNINGS, no longer relevant 2022-05-27 11:40:40 +07:00
sdkconfig.defauts.esp32 build: remove COMPILER_DISABLE_GCC8_WARNINGS, no longer relevant 2022-05-27 11:40:40 +07:00

README.md

Supported Targets ESP32 ESP32-C3

ESP-IDF Gattc and Gatts Coexistence example

This example demonstrates the coexistence of gattc and gatts.

This example creates a GATT service and starts ADV. The ADV name is ESP_GATTS_DEMO, then waits to be connected. At the same time, a gatt client is created, the ADV name is ESP_GATTS_DEMO, the device is connected, and the data is exchanged. If the device is not found within 120 seconds, the example will stop scanning.

ESP-IDF also allows users to create a GATT service via an attribute table, rather than add attributes one by one. And it is recommended for users to use. For more information about this method, please refer to gatt_server_service_table_demo.

To test this example, you can run the gatt_client_demo, which can scan for and connect to this example automatically, and run gatt_server_demo, Waiting to be connected. They will start exchanging data once the GATT client has enabled the notification function of the GATT server.

Please check the tutorial for more information about the gatts part of this example. Please check the tutorial for more information about the gattc part of this example.