refactor: decreased interval and window for scanning BLE

This commit is contained in:
Yurii
2025-10-22 17:22:02 +03:00
parent 0213582464
commit d5691ef8f7
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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"));
}