mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-12-22 11:00:47 +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);
|
||||
};
|
||||
|
||||
void onDisconnect(NimBLEClient* pClient) {
|
||||
printf("%s Disconnected - Starting scan\n", pClient->getPeerAddress().toString().c_str());
|
||||
void onDisconnect(NimBLEClient* pClient, int reason) {
|
||||
printf("%s Disconnected, reason = %d - Starting scan\n",
|
||||
pClient->getPeerAddress().toString().c_str(), reason);
|
||||
NimBLEDevice::getScan()->start(scanTime, scanEndedCB);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue