ESP32 Bluetooth Pairing Mode Change
Posted: Wed Aug 07, 2019 6:42 am
Hi,
With the below example, I can pair my phone to an ESP32. But the passkey is shown to the user at phone's end and the user just has to click OK for pairing.
But I need the user to enter the passkey for pairing, which I can see in IDF monitor. So, only those who know the key can pair to the ESP32. Which API to use for this?
Also in the example, the passkey is randomly generated. Can I use a hardcoded passkey, which I can set in the code?
Link for example - https://github.com/espressif/esp-idf/bl ... tor_demo.c
Link for API's available - https://docs.espressif.com/projects/esp ... ap_bt.html
With the below example, I can pair my phone to an ESP32. But the passkey is shown to the user at phone's end and the user just has to click OK for pairing.
But I need the user to enter the passkey for pairing, which I can see in IDF monitor. So, only those who know the key can pair to the ESP32. Which API to use for this?
Also in the example, the passkey is randomly generated. Can I use a hardcoded passkey, which I can set in the code?
Link for example - https://github.com/espressif/esp-idf/bl ... tor_demo.c
Link for API's available - https://docs.espressif.com/projects/esp ... ap_bt.html