BLE Pairing with a button
Posted: Fri Feb 01, 2019 10:18 am
Hi,
I am currently working on a project where I need to have a Bluetooth connection with an app. My ESP32 is a secure GATT Server and I would like to get this behaviour:
- If the phone (the central) is not bonded yet, it can start the secure connection only if the user press a button (like a pairing button).
- If the phone is already bonded, it can connect to the esp32 without the need to press any button.
The BLE code is directly based on the Secure GATT Server Example, with MITM encryption and the Just Work method (I just have a button).
Does anyone have ever try to get this behaviour ?
I am currently working on a project where I need to have a Bluetooth connection with an app. My ESP32 is a secure GATT Server and I would like to get this behaviour:
- If the phone (the central) is not bonded yet, it can start the secure connection only if the user press a button (like a pairing button).
- If the phone is already bonded, it can connect to the esp32 without the need to press any button.
The BLE code is directly based on the Secure GATT Server Example, with MITM encryption and the Just Work method (I just have a button).
Does anyone have ever try to get this behaviour ?