-
-
Notifications
You must be signed in to change notification settings - Fork 204
Description
Im just getting started with migrating some very old esp32 Bluetooth peripheral code to NimBLE Arduino v2.x. But I'm confused on what appears to be a new limitation during bonding.
Why is it that the NimBLEServerCallbacks do not at least share the same callbacks regarding pair/bond/security?
For as can been seen in this reference from Nordic chart attached, the initiator/central, and responder/peripheral, could have any combination of capabilities. So, for example in the case where a peripheral is set to only keyboard, and the remote central has a Just Display, or even Keyboard and Display, or even LE Secure Connections enabled, the negotiated method should require the peripheral to enter the displayed passkey by the initiator, and get some sort of notification on what it needs to do.
In this lib implementation, presumably that is the onPassKeyEntry callback, which is what's missing on NimBLEServerCallbacks. And inversely the onPassKeyDisplay callback missing from the Client object for the same reasoning.
Also, from what i recall this chart mirrors what the Bluetooth specification indicates, so regardless, it appears to me that both 'Display' and 'Entry' callbacks should be present (and functional) for both the Server and client i suppose.
