d2872095f9
Moved the following kconfig options out of the target component: * CONFIG_ESP*_DEFAULT_CPU_FREQ* -> esp_system * ESP*_REV_MIN -> esp_hw_support * ESP*_TIME_SYSCALL -> newlib * ESP*_RTC_* -> esp_hw_support Where applicable these target specific konfig names were merged into a single common config, e.g; CONFIG_ESP*_DEFAULT_CPU_FREQ -> CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ |
||
---|---|---|
.. | ||
main | ||
CMakeLists.txt | ||
README.md | ||
sdkconfig.defaults | ||
sdkconfig.defaults.esp32c3 | ||
sdkconfig.defaults.esp32s3 | ||
sdkconfig.defauts.esp32 |
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.