Correct error in creation of NimBLEAddress from six bytes in a std::string

* Add creation of a NimBLEAddress from a std::string of 6 exactly bytes.

* Add creation of a NimBLEAddress from an empty string.
This commit is contained in:
h2zero
2020-05-18 10:11:54 -06:00
parent 08fc2878e7
commit 32e1022e67
4 changed files with 13 additions and 2 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ private:
bool retrieveServices(); //Retrieve services from the server
// void onHostReset();
NimBLEAddress m_peerAddress = NimBLEAddress("\0\0\0\0\0\0"); // The BD address of the remote server.
NimBLEAddress m_peerAddress = NimBLEAddress(""); // The BD address of the remote server.
uint16_t m_conn_id;
bool m_haveServices = false; // Have we previously obtain the set of services from the remote server.
bool m_isConnected = false; // Are we currently connected.