[Server] Add callback for MTU change. (#55)

onMTUChange callback added that is called when a connection MTU is updated.
This commit is contained in:
h2zero authored and GitHub committed 2021-07-19 21:47:59 -06:00
1 parent 7d01fa595d
commit 0a2714c169
3 files changed
+21

No files matched your search

+8
View File
@@ -131,6 +131,14 @@ public:
*/
virtual void onDisconnect(NimBLEServer* pServer, ble_gap_conn_desc* desc);
/**
* @brief Called when the connection MTU changes.
* @param [in] MTU The new MTU value.
* @param [in] desc A pointer to the connection description structure containig information
* about the connection.
*/
virtual void onMTUChange(uint16_t MTU, ble_gap_conn_desc* desc);
/**
* @brief Called when a client requests a passkey for pairing.
* @return The passkey to be sent to the client.