forked from h2zero/esp-nimble-cpp
Add disconnect overload to take NimBLEConnInfo reference. (#162)
* NimBLEConnInfo - Note that the connection handle is the same as the connection id in the comment for getConnHandle() * NimBLEServer - int disconnect(const NimBLEConnInfo&) helper method
This commit is contained in:
1 parent
2447af6a4d
commit
f36929963d
3 files changed
+12
-1
No files matched your search
@@ -22,7 +22,7 @@ public:
|
||||
/** @brief Gets the ID address of the connected peer */
|
||||
NimBLEAddress getIdAddress() const { return NimBLEAddress(m_desc.peer_id_addr); }
|
||||
|
||||
/** @brief Gets the connection handle of the connected peer */
|
||||
/** @brief Gets the connection handle (also known as the connection id) of the connected peer */
|
||||
uint16_t getConnHandle() const { return m_desc.conn_handle; }
|
||||
|
||||
/** @brief Gets the connection interval for this connection (in 1.25ms units) */
|
||||
|
||||
Reference in new issue
Block a user