I have an android BLE client and an android BLE server.
After the initial connection, I want the server to allow only the previously connected client device to connect.
How to achieve this?
What I have considered so far:
1. Bond the devices via android Bluetooth settings
Is it possible to allow only bonded devices to connect to the server? If so, how?
2. Some sort of whitelist
- Mac Address (problematic, as mac addresses are not static)
- device name
- IRK
Is it possible to implement such a whitelist? If so, how?
3. Only advertise for first connection
Only advertise for first connection, then remember the server device on the client side and try to connect to the server without advertising. This does not seem to work.