mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-27 01:07:15 +02:00
add onMtuChanged to BLEServerCallbacks (#5222)
* add onMtuChanged to BLEServerCallbacks Add method onMtuChanged to the BLEServerCallbacks so the application can be notified if the MTU size changes. * Correct missing semicolon and misspelled method. Correct missing semicolon and misspelled method.
This commit is contained in:
@ -134,6 +134,16 @@ public:
|
||||
* @param [in] pServer A reference to the %BLE server that received the existing client disconnection.
|
||||
*/
|
||||
virtual void onDisconnect(BLEServer* pServer);
|
||||
|
||||
/**
|
||||
* @brief Handle a new client connection.
|
||||
*
|
||||
* When the MTU changes this method is invoked.
|
||||
*
|
||||
* @param [in] pServer A reference to the %BLE server that received the client connection.
|
||||
* @param [in] param A reference to esp_ble_gatts_cb_param_t.
|
||||
*/
|
||||
virtual void onMtuChanged(BLEServer* pServer, esp_ble_gatts_cb_param_t* param);
|
||||
}; // BLEServerCallbacks
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user