Skip to content

Commit

Permalink
Merge pull request #94 from mc-hamster/BLE_NOPIN
Browse files Browse the repository at this point in the history
BLE MITM disabled
  • Loading branch information
mc-hamster authored Jan 5, 2022
2 parents e9f01de + f9905ea commit c366d81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nimble/BluetoothUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ void reinitBluetooth()

ble_hs_cfg.sm_io_cap = BLE_SM_IO_CAP_DISP_ONLY;
ble_hs_cfg.sm_bonding = 1;
ble_hs_cfg.sm_mitm = 1;
ble_hs_cfg.sm_mitm = 0;
ble_hs_cfg.sm_sc = 1;
// per https://github.com/espressif/esp-idf/issues/5530#issuecomment-652933685
ble_hs_cfg.sm_our_key_dist = BLE_SM_PAIR_KEY_DIST_ID | BLE_SM_PAIR_KEY_DIST_ENC;
Expand Down

0 comments on commit c366d81

Please sign in to comment.