forked from h2zero/esp-nimble-cpp
[BREAKING] Replace advertised device callbacks with scan callbacks. (#389)
This replaces NimBLEAdvertisedDeviceCallbacks with NimBLEScanCallbacks and adds a onScanEnd callback. The callback parameter for NimBLEScan::start has been removed and the blocking overload for NimBLEScan::start has been replaced by an overload of NimBLEScan::getResults with the same parameters.
This commit is contained in:
@@ -162,7 +162,7 @@ void app_main(void)
|
||||
NimBLEDevice::init("");
|
||||
|
||||
NimBLEScan *pScan = NimBLEDevice::getScan();
|
||||
NimBLEScanResults results = pScan->start(10 * 1000);
|
||||
NimBLEScanResults results = pScan->getResults(10 * 1000);
|
||||
}
|
||||
```
|
||||
<br/>
|
||||
|
||||
Reference in New Issue
Block a user