1 parent
55dd571c49
commit
6c8ba53276
2 files changed
+4
No files matched your search
@@ -633,6 +633,7 @@ class MyAdvertisedDeviceCallbacks : public BLEAdvertisedDeviceCallbacks {
|
|||||||
void BLEscan() {
|
void BLEscan() {
|
||||||
disableCore0WDT();
|
disableCore0WDT();
|
||||||
Log.notice(F("Scan begin" CR));
|
Log.notice(F("Scan begin" CR));
|
||||||
|
BLEDevice::setScanDuplicateCacheSize(BLEScanDuplicateCacheSize);
|
||||||
BLEDevice::init("");
|
BLEDevice::init("");
|
||||||
BLEScan* pBLEScan = BLEDevice::getScan();
|
BLEScan* pBLEScan = BLEDevice::getScan();
|
||||||
MyAdvertisedDeviceCallbacks myCallbacks;
|
MyAdvertisedDeviceCallbacks myCallbacks;
|
||||||
|
|||||||
@@ -62,6 +62,9 @@ bool bleConnect = AttemptBLECOnnect;
|
|||||||
#ifndef ScanBeforeConnect
|
#ifndef ScanBeforeConnect
|
||||||
# define ScanBeforeConnect 10 //define number of scans before connecting to BLE devices (ESP32 only, minimum 1)
|
# define ScanBeforeConnect 10 //define number of scans before connecting to BLE devices (ESP32 only, minimum 1)
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef BLEScanDuplicateCacheSize
|
||||||
|
# define BLEScanDuplicateCacheSize 200
|
||||||
|
#endif
|
||||||
#ifndef TimeBtwRead
|
#ifndef TimeBtwRead
|
||||||
# define TimeBtwRead 55555 //define default time between 2 scans
|
# define TimeBtwRead 55555 //define default time between 2 scans
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in new issue
Block a user