mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2026-01-28 10:02:19 +01:00
Initialize peerAddress in client constructor.
Co-authored-by: wakwak-koba <wakwak-koba@users.noreply.github.com>
This commit is contained in:
@@ -53,8 +53,7 @@ static NimBLEClientCallbacks defaultCallbacks;
|
||||
* @brief Constructor, private - only callable by NimBLEDevice::createClient
|
||||
* to ensure proper handling of the list of client objects.
|
||||
*/
|
||||
NimBLEClient::NimBLEClient()
|
||||
{
|
||||
NimBLEClient::NimBLEClient(const NimBLEAddress &peerAddress) : m_peerAddress(peerAddress) {
|
||||
m_pClientCallbacks = &defaultCallbacks;
|
||||
m_conn_id = BLE_HS_CONN_HANDLE_NONE;
|
||||
m_isConnected = false;
|
||||
|
||||
Reference in New Issue
Block a user