Description
I've been playing with the BLE_server_authorization example at #315 which seems to work great, bonding successfully with my Android device. I would now like to add a new feature and, being new to BLE, it's unclear to me how to do it:
2 minutes after boot, I'd like for the ESP32 server to no longer create new bonds or pairs and therefore not connect to any devices it has not previously bonded to. However I would like it to still be able to connect to devices with preexisting bonds. So if the connection has been dropped from a device the ESP32 server has previously bonded to, the server and client can reconnect. But if there is no bond, no connection would be possible after 2 minutes.
My first thought was to stop advertising but it seems to me a server cannot connect to client at all, bond or no bond, if it is not already connected and not advertising. So I'm wondering if there is a way to stop the bonding and pairing process but still allow the connections and require the security that comes with bonding/pairing.
Thanks for any suggestions you may have.