Jiang Jiang Jian 892fc4ac3f Merge branch 'feature/btdm_add_set_default_passkey_function' into 'master' 7 jaren geleden
..
main d12982dc6e Component/bt: add set default passkey function 7 jaren geleden
tutorial e22f8ad1aa component/bt: Update BLE examples tutorials and ReadMe files 8 jaren geleden
CMakeLists.txt 800bffb8b0 cmake: Add CMakeLists.txt files for all examples 7 jaren geleden
Makefile c6a516f122 component/bt:move the btdm_rebase_ssp_api branch to this branch 8 jaren geleden
README.md e22f8ad1aa component/bt: Update BLE examples tutorials and ReadMe files 8 jaren geleden
sdkconfig.defaults ee787085f9 component/bt : decrease memory consumption by conn number 7 jaren geleden

README.md

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.