mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-22 13:10:55 +01:00
Fix client example.
This commit is contained in:
parent
bfe68f4a91
commit
2b758e05c7
1 changed files with 3 additions and 2 deletions
|
@ -33,8 +33,9 @@ class ClientCallbacks : public NimBLEClientCallbacks {
|
||||||
pClient->updateConnParams(120,120,0,45);
|
pClient->updateConnParams(120,120,0,45);
|
||||||
};
|
};
|
||||||
|
|
||||||
void onDisconnect(NimBLEClient* pClient) {
|
void onDisconnect(NimBLEClient* pClient, int reason) {
|
||||||
printf("%s Disconnected - Starting scan\n", pClient->getPeerAddress().toString().c_str());
|
printf("%s Disconnected, reason = %d - Starting scan\n",
|
||||||
|
pClient->getPeerAddress().toString().c_str(), reason);
|
||||||
NimBLEDevice::getScan()->start(scanTime, scanEndedCB);
|
NimBLEDevice::getScan()->start(scanTime, scanEndedCB);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue