OVMS3-idf/examples/bluetooth/gatt_security_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 Merge branch 'feature/nvs_version_check' into 'master' 2018-08-07 13:31:49 +08:00
tutorial component/bt: Update BLE examples tutorials and ReadMe files 2018-01-25 16:59:40 +08:00
Makefile component/bt:move the btdm_rebase_ssp_api branch to this branch 2017-04-13 10:14:28 -04: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 Security Server Demo

This is the demo of APIs to connect to and encrypt with peer devices.

To test this demo, you can run gatt_security_client_demo, which starts scanning, connects to and starts encryption with gatt_security_server_demo automatically.

There are some important points for this demo:
1.esp_ble_gap_set_security_param should be used to set the security parameters in the initial stage;
2.esp_ble_set_encryption should be used to start encryption with peer device. If the peer device initiates the encryption, esp_ble_gap_security_rsp should be used to send security response to the peer device when ESP_GAP_BLE_SEC_REQ_EVT is received.
3.The gatt_security_client_demo will receive a ESP_GAP_BLE_AUTH_CMPL_EVT once the encryption procedure has completed.

Please check the tutorial for more information about this example.