mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2026-01-27 17:42:24 +01:00
Initialize peerAddress in client constructor.
Co-authored-by: wakwak-koba <wakwak-koba@users.noreply.github.com>
This commit is contained in:
@@ -148,10 +148,7 @@ void NimBLEDevice::stopAdvertising() {
|
||||
NIMBLE_MAX_CONNECTIONS);
|
||||
}
|
||||
|
||||
NimBLEClient* pClient = new NimBLEClient();
|
||||
if(peerAddress != NimBLEAddress("")) {
|
||||
pClient->setPeerAddress(peerAddress);
|
||||
}
|
||||
NimBLEClient* pClient = new NimBLEClient(peerAddress);
|
||||
m_cList.push_back(pClient);
|
||||
|
||||
return pClient;
|
||||
|
||||
Reference in New Issue
Block a user