Page 1 of 1

Nimble BLE Central accepting pairing from peripheral

Posted: Thu May 11, 2023 5:57 pm
by kh13824
Hello,

I currently working with an ESP32-S3 as a BLE Central server and trying to pair to a external BLE peripheral. I am currently having issues with trying to read characteristics from the device (Nimble BLE hangs after sending read) and I suspect it is because I do not have any way of accepting the pairing request on my ESP32. I have a separate phone app which I can connect to my external BLE peripheral and when I initiate pairing from the app, I am prompted in the app to accept the pairing from the external device. Is there anyway I could use esp-idf's monitor to accept the pairing request? Is there a GAP event when receiving a pairing request?

Re: Nimble BLE Central accepting pairing from peripheral

Posted: Thu May 11, 2023 8:27 pm
by MicroController
Haven't tried it on a central, but you may want to check if you receive a BLE_GAP_EVENT_PASSKEY_ACTION after calling ble_gap_security_initiate(...).