esp-idf/examples/bluetooth/bluedroid/ble/gatt_server
2022-03-11 10:48:21 +00:00
..
main Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
tutorial component/bt: fix some ble document description error 2021-09-01 20:42:44 +08:00
CMakeLists.txt build_app: make multi target support readable 2020-04-09 16:40:57 +08:00
Makefile Bluetooth examples restructuring 2019-07-01 19:21: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.esp32 components/bt: move config BT_RESERVE_DRAM from bluedroid to ESP32 controller 2022-03-11 10:48:21 +00:00
sdkconfig.defaults.esp32c3 components/bt: move config BT_RESERVE_DRAM from bluedroid to ESP32 controller 2022-03-11 10:48:21 +00:00
sdkconfig.defaults.esp32s3 components/bt: move config BT_RESERVE_DRAM from bluedroid to ESP32 controller 2022-03-11 10:48:21 +00:00

Supported Targets ESP32 ESP32-C3

ESP-IDF Gatt Server Demo

This is the demo of APIs to create a GATT service by adding attributes one by one. However, this method is defined by Bluedroid and is difficult for users to use.

Hence, we also allow users to create a GATT service with an attribute table, which releases the user from adding 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.

This demo creates GATT a service and then starts advertising, waiting to be connected to a GATT client.

To test this demo, we can run the gatt_client_demo, which can scan for and connect to this demo automatically. 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 this example.