Add server and client onIdentity callback.

Adds a callback that is called when the identity address of the peer is resolved, this is useful for adding it to a whitelist.
This commit is contained in:
h2zero
2024-06-12 21:12:09 -06:00
committed by h2zero
parent 44daa3c687
commit aeb4334e98
4 changed files with 43 additions and 0 deletions
+6
View File
@@ -164,6 +164,12 @@ public:
* @param [in] pin The pin to compare with the server.
*/
virtual void onConfirmPIN(const NimBLEConnInfo& connInfo, uint32_t pin);
/**
* @brief Called when the peer identity address is resolved.
* @param [in] connInfo A reference to a NimBLEConnInfo instance with information
*/
virtual void onIdentity(const NimBLEConnInfo& connInfo);
};
#endif /* CONFIG_BT_ENABLED && CONFIG_BT_NIMBLE_ROLE_CENTRAL */