zhiweijian 4e81705ca2 Component/bt: support OOB in SMP há 7 anos atrás
..
main 4e81705ca2 Component/bt: support OOB in SMP há 7 anos atrás
tutorial e22f8ad1aa component/bt: Update BLE examples tutorials and ReadMe files há 8 anos atrás
CMakeLists.txt d9939cedd9 cmake: make main a component again há 7 anos atrás
Makefile a7f8ac5ad6 Component/bt: add gatt_security_client demo há 8 anos atrás
README.md e22f8ad1aa component/bt: Update BLE examples tutorials and ReadMe files há 8 anos atrás
sdkconfig.defaults ee787085f9 component/bt : decrease memory consumption by conn number há 7 anos atrás

README.md

ESP-IDF Gatt Security Client Demo

This is the demo for users to use ESP BLE security APIs to connect to and encrypt with peer devices.

To test this demo, you can run the gatt_security_server_demo, which starts advertising and can be connected to this 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.