nimble WIP turn on bonding and security

This commit is contained in:
geeksville
2020-07-22 13:50:30 -07:00
parent b6a3deb341
commit 00cf3a768e
2 changed files with 3 additions and 13 deletions

View File

@@ -738,21 +738,11 @@ void reinitBluetooth()
ble_hs_cfg.store_status_cb = ble_store_util_status_rr;
ble_hs_cfg.sm_io_cap = BLE_SM_IO_CAP_DISP_ONLY;
#ifdef CONFIG_EXAMPLE_BONDING
ble_hs_cfg.sm_bonding = 1;
#endif
#ifdef CONFIG_EXAMPLE_MITM
ble_hs_cfg.sm_mitm = 1;
#endif
#ifdef CONFIG_EXAMPLE_USE_SC
ble_hs_cfg.sm_sc = 1;
#else
ble_hs_cfg.sm_sc = 0;
#ifdef CONFIG_EXAMPLE_BONDING
ble_hs_cfg.sm_our_key_dist = 1;
ble_hs_cfg.sm_their_key_dist = 1;
#endif
#endif
// add standard GAP services
ble_svc_gap_init();