Add connection desc param to disconnect callback.

This commit is contained in:
h2zero committed 2020-12-04 19:03:52 -07:00
1 parent 3e9a63a514
commit a85ac6ad5a
2 files changed
+14

No files matched your search

+9
View File
@@ -114,6 +114,15 @@ public:
*/
virtual void onDisconnect(NimBLEServer* pServer);
/**
* @brief Handle a client disconnection.
* This is called when a client discconnects.
* @param [in] pServer A pointer to the %BLE server that received the client disconnection.
* @param [in] desc A pointer to the connection description structure containig information
* about the connection.
*/
virtual void onDisconnect(NimBLEServer* pServer, ble_gap_conn_desc* desc);
/**
* @brief Called when a client requests a passkey for pairing.
* @return The passkey to be sent to the client.