Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5d614f5

Browse filesBrowse files
RM-AlltronsAdmin
andauthored
Added onDisconnect with gatt parameters to BLUEServerCallbacks, equivalent to the existing onConnect (espressif#7559)
Co-authored-by: Admin <admin@wlan-244060.nbw.tue.nl>
1 parent 27e6f35 commit 5d614f5
Copy full SHA for 5d614f5

File tree

Expand file treeCollapse file tree

2 files changed

+7
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+7
-0
lines changed

‎libraries/BLE/src/BLEServer.cpp

Copy file name to clipboardExpand all lines: libraries/BLE/src/BLEServer.cpp
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,12 @@ void BLEServerCallbacks::onDisconnect(BLEServer* pServer) {
374374
log_d("BLEServerCallbacks", "<< onDisconnect()");
375375
} // onDisconnect
376376

377+
void BLEServerCallbacks::onDisconnect(BLEServer* pServer, esp_ble_gatts_cb_param_t* param) {
378+
log_d("BLEServerCallbacks", ">> onDisconnect(): Default");
379+
log_d("BLEServerCallbacks", "Device: %s", BLEDevice::toString().c_str());
380+
log_d("BLEServerCallbacks", "<< onDisconnect()");
381+
} // onDisconnect
382+
377383
void BLEServerCallbacks::onMtuChanged(BLEServer* pServer, esp_ble_gatts_cb_param_t* param) {
378384
log_d("BLEServerCallbacks", ">> onMtuChanged(): Default");
379385
log_d("BLEServerCallbacks", "Device: %s MTU: %d", BLEDevice::toString().c_str(), param->mtu.mtu);

‎libraries/BLE/src/BLEServer.h

Copy file name to clipboardExpand all lines: libraries/BLE/src/BLEServer.h
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ class BLEServerCallbacks {
134134
* @param [in] pServer A reference to the %BLE server that received the existing client disconnection.
135135
*/
136136
virtual void onDisconnect(BLEServer* pServer);
137+
virtual void onDisconnect(BLEServer* pServer, esp_ble_gatts_cb_param_t *param);
137138

138139
/**
139140
* @brief Handle a new client connection.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.