Hey, I have following problem: I want an Nano BLE to go in a kind of a pairing mode if a button is clicked, so that another Nano BLE can connect to it. And on startup, if the button is not clicked it, the client should still be able to connect to the server without having to pair / bond again. Other devices which are not in this whitelist should not be able to connect. This is an similar problem just with the ESP32 Activate BLE Bonding and security with Button and show special services - ESP32 Forum.
I was wondering if something like this is possible with the current ArduinoBLE Library or if pairing is still not supported.
Welcome to the forum.
I seriously doubt pairing will be supported by the ArduinoBLE library. There is simply no good reason for it and it is complicated and requires a lot of effort. I am sure the Arduino team has lots of more interesting ideas and requests.
If you want this you can easily implement something yourself on the service/characteristic level. Simple version a characteristic that needs to be written to by the client, when the client connects. If the peripheral is not happy about the value/pass code that gets written it disconnects. That should be enough for a hobby project.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.