File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -202,6 +202,7 @@ void BLEServer::handleGATTServerEvent(
202
202
m_connId = param->connect .conn_id ; // Save the connection id.
203
203
if (m_pServerCallbacks != nullptr ) {
204
204
m_pServerCallbacks->onConnect (this );
205
+ m_pServerCallbacks->onConnect (this , param);
205
206
}
206
207
m_connectedCount++; // Increment the number of connected devices count.
207
208
break ;
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ class BLEServer {
64
64
void startAdvertising ();
65
65
void removeService (BLEService *service);
66
66
67
+
67
68
private:
68
69
BLEServer ();
69
70
friend class BLEService ;
@@ -103,7 +104,7 @@ class BLEServerCallbacks {
103
104
* @param [in] pServer A reference to the %BLE server that received the client connection.
104
105
*/
105
106
virtual void onConnect (BLEServer* pServer);
106
-
107
+ virtual void onConnect (BLEServer* pServer, esp_ble_gatts_cb_param_t *param);
107
108
/* *
108
109
* @brief Handle an existing client disconnection.
109
110
*
You can’t perform that action at this time.
0 commit comments