feat(NimBLEClient): allow connection id / established flag to be set via public API. (#156)

* Adds NimBLEClient::setConnection  to allow servers to read the name of connected clients by passing their connection info to the Client class.
* Adds NimBLEClient::clearConnection to be able to reuse the client without deleting and recreating.
This commit is contained in:
William Emfinger
2024-06-04 10:37:24 -06:00
committed by GitHub
parent 51bf1f3c7c
commit 32c213a8a3
2 changed files with 63 additions and 0 deletions
+3
View File
@@ -61,6 +61,9 @@ public:
bool deleteCallbacks = true);
std::string toString();
uint16_t getConnId();
void clearConnection();
bool setConnection(NimBLEConnInfo &conn_info);
bool setConnection(uint16_t conn_id);
uint16_t getMTU();
bool secureConnection();
void setConnectTimeout(uint32_t timeout);