mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-11 18:54:28 +05:00
refactor: decreased interval and window for scanning BLE
This commit is contained in:
@@ -164,6 +164,7 @@ extends = esp32_defaults
|
||||
board = lolin_s2_mini
|
||||
build_unflags = -DARDUINO_USB_MODE=1
|
||||
build_flags = ${esp32_defaults.build_flags}
|
||||
-D MYNEWT_VAL_BLE_EXT_ADV=1
|
||||
-D ARDUINO_USB_MODE=0
|
||||
-D ARDUINO_USB_CDC_ON_BOOT=1
|
||||
-D DEFAULT_OT_IN_GPIO=33
|
||||
|
||||
@@ -584,8 +584,8 @@ protected:
|
||||
this->pBLEScan->setActiveScan(false);
|
||||
this->pBLEScan->setDuplicateFilter(false);
|
||||
this->pBLEScan->setMaxResults(0);
|
||||
this->pBLEScan->setInterval(100);
|
||||
this->pBLEScan->setWindow(100);
|
||||
this->pBLEScan->setInterval(10);
|
||||
this->pBLEScan->setWindow(10);
|
||||
|
||||
Log.sinfoln(FPSTR(L_SENSORS_BLE), F("Scanning initialized"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user