Add last error function to client.

This commit is contained in:
h2zero
2021-12-29 08:12:38 -07:00
parent d041a089e6
commit 7a82067177
2 changed files with 21 additions and 0 deletions
+2
View File
@@ -71,6 +71,7 @@ public:
void setDataLen(uint16_t tx_octets);
void discoverAttributes();
NimBLEConnInfo getConnInfo();
int getLastError();
private:
NimBLEClient(const NimBLEAddress &peerAddress);
@@ -88,6 +89,7 @@ private:
bool retrieveServices(const NimBLEUUID *uuid_filter = nullptr);
NimBLEAddress m_peerAddress;
int m_lastErr;
uint16_t m_conn_id;
bool m_connEstablished;
bool m_deleteCallbacks;