Nimble BLE Central accepting pairing from peripheral

kh13824
Posts: 10
Joined: Tue Oct 18, 2022 6:01 pm

Nimble BLE Central accepting pairing from peripheral

Postby kh13824 » Thu May 11, 2023 5:57 pm

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?

MicroController
Posts: 1709
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Nimble BLE Central accepting pairing from peripheral

Postby MicroController » Thu May 11, 2023 8:27 pm

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(...).

Who is online

Users browsing this forum: Google [Bot] and 80 guests