Add NimBLEClient::cancelConnect

Adds a function to cancel and in-progress connection.
This commit is contained in:
h2zero
2024-11-12 16:14:02 -07:00
committed by h2zero
parent 38e764d157
commit 65e05e6c57
2 changed files with 16 additions and 0 deletions
+1
View File
@@ -51,6 +51,7 @@ class NimBLEClient {
bool connect(const NimBLEAddress& address, bool deleteAttributes = true, bool asyncConnect = false, bool exchangeMTU = true);
bool connect(bool deleteAttributes = true, bool asyncConnect = false, bool exchangeMTU = true);
bool disconnect(uint8_t reason = BLE_ERR_REM_USER_CONN_TERM);
bool cancelConnect();
NimBLEAddress getPeerAddress() const;
bool setPeerAddress(const NimBLEAddress& address);
int getRssi() const;