esp-idf/examples/bluetooth/gatt_server
Tian Hao ee787085f9 component/bt : decrease memory consumption by conn number
1. BLE only with 9(max) connection will decrease 3K DRAM
2. BR/EDR only with 7(max) connection will decrease 16K DRAM
3. Any of BLE or BR/EDR connection number decrease will also decrease DRAM consumption
4. Decrease one BLE connection will save about 1KB DRAM
5. Decrease one BR/EDR ACL connection will save about 1.2KB DRAM
6. Decrease one BR/EDR SCO/eSCO will save 2KB DRAM.
7. fix some definition and kconfig
8. remove 1.2k of vhci tx cache and make .bss & .data to heap about 1.4K
9. modify BT Reserved Memory size and modify example to support new bt kconfig
2018-08-14 02:29:17 +00:00
..
main nvs_flash: Version compatibility check for nvs storage 2018-08-05 00:00:56 +00:00
tutorial nvs_flash: Version compatibility check for nvs storage 2018-08-05 00:00:56 +00:00
Makefile Moved examples to new folders / categories. Removed example numbers from example names 2017-01-16 23:08:35 +01:00
README.md component/bt: Update BLE examples tutorials and ReadMe files 2018-01-25 16:59:40 +08:00
sdkconfig.defaults component/bt : decrease memory consumption by conn number 2018-08-14 02:29:17 +00:00

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.