forked from h2zero/esp-nimble-cpp
Adds the reason code as a parameter to the client onDisconnect callback. * Update examples/docs.
This commit is contained in:
+1
-4
@@ -131,7 +131,7 @@ public:
|
||||
* @brief Called when disconnected from the server.
|
||||
* @param [in] pClient A pointer to the calling client object.
|
||||
*/
|
||||
virtual void onDisconnect(NimBLEClient* pClient);
|
||||
virtual void onDisconnect(NimBLEClient* pClient, int reason);
|
||||
|
||||
/**
|
||||
* @brief Called when server requests to update the connection parameters.
|
||||
@@ -147,9 +147,6 @@ public:
|
||||
*/
|
||||
virtual uint32_t onPassKeyRequest();
|
||||
|
||||
/*virtual void onPassKeyNotify(uint32_t pass_key);
|
||||
virtual bool onSecurityRequest();*/
|
||||
|
||||
/**
|
||||
* @brief Called when the pairing procedure is complete.
|
||||
* @param [in] desc A pointer to the struct containing the connection information.\n
|
||||
|
||||
Reference in New Issue
Block a user