NimBLE-Arduino icon indicating copy to clipboard operation
NimBLE-Arduino copied to clipboard

[Question] IO capabilites for pairing

Open alberk8 opened this issue 2 years ago • 1 comments
trafficstars

Hi, I am trying out the NimBLE_Secure_Server example and it did work.

What is the setting that is need for the BLEServer to present passkey Input dialog before ability to access the Services and Characteristic? I am using nRF Connect on Android phone. Thank you.

alberk8 avatar Jan 12 '23 10:01 alberk8

The lines you'll want are:

NimBLEDevice::setSecurityIOCap(BLE_HS_IO_DISPLAY_ONLY); // use passkey
NimBLEDevice::setSecurityAuth(false, true, true);

h2zero avatar Jan 20 '23 03:01 h2zero