Nimble Pairing method on two esp32

suadss
Posts: 2
Joined: Tue Feb 07, 2023 5:24 pm

Nimble Pairing method on two esp32

Postby suadss » Mon Mar 27, 2023 11:47 am

Hi I'm trying to implement the pairing process (passkey method) using Nimble Ble stack on two esp32. One device will initiate the pairing process(ble_gap_security_initiate) the other device needs to send the pin (pin is hard coded).
So I used the bleprph example with minor changes, and using my phone everything is working fine! When trying to connect I need to set the pin code, one side is working.

But I need this part on a second esp32 I used the blecent example for the second device, when the ble_gap_security_initiate function is called from the first device shouldn't be there a GAP EVENT on the second device?
Can someone explain how this process is working?

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 117 guests