[BLE] Callback leads to memory decrease correction (#740)

and library update
This commit is contained in:
Florian authored and GitHub committed 2020-08-22 20:45:39 -05:00
1 parent d6d42bfce5
commit 9d22f242e8
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -480,7 +480,8 @@ void BLEscan() {
Log.notice(F("Scan begin" CR));
BLEDevice::init("");
BLEScan* pBLEScan = BLEDevice::getScan(); //create new scan
pBLEScan->setAdvertisedDeviceCallbacks(new MyAdvertisedDeviceCallbacks());
MyAdvertisedDeviceCallbacks myCallbacks;
pBLEScan->setAdvertisedDeviceCallbacks(&myCallbacks);
pBLEScan->setActiveScan(true); //active scan uses more power, but get results faster
BLEScanResults foundDevices = pBLEScan->start(Scan_duration / 1000, false);
scanCount++;
+1 -1
View File
@@ -73,7 +73,7 @@ arduinolog = https://github.com/1technophile/Arduino-Log.git#d13cd80
pubsubclient = PubSubClient@2.8
rc-switch = https://github.com/1technophile/rc-switch.git#385a7e0
newremoteswitch = https://github.com/1technophile/NewRemoteSwitch.git#8eb980e
ble = https://github.com/h2zero/NimBLE-Arduino.git#e53bbf9
ble = https://github.com/h2zero/NimBLE-Arduino.git#1.0.0
irremoteesp = IRremoteESP8266@2.7.7
irremote = https://github.com/z3t0/Arduino-IRremote.git#1c08a37
lora = https://github.com/sandeepmistry/arduino-LoRa.git#f4a1d27