diff --git a/.gitignore b/.gitignore index 656f413..57241d9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -Settings_local.h .pioenvs .piolibdeps .clang_complete @@ -9,3 +8,5 @@ include/ Settings_*.h .pio/* .vscode/* +espota.py +upload_all.sh diff --git a/src/Settings.h b/src/Settings.h index fdb631d..6885ca1 100644 --- a/src/Settings.h +++ b/src/Settings.h @@ -70,10 +70,10 @@ #define TELEMETRY_TOPIC (Sprintf("presence_nodes/%s/tele", room.c_str())) // Define bluetooth scan parameters -#define BLE_ACTIVE_SCAN true // Active scan uses more power, but get results faster +#define BLE_ACTIVE_SCAN false // Active scan uses more power, but get results faster -#define BLE_SCAN_INTERVAL 340 // Used to determine antenna sharing between Bluetooth and WiFi. Do not modify unless you are confident you know what you're doing -#define BLE_SCAN_WINDOW 320 // Used to determine antenna sharing between Bluetooth and WiFi. Do not modify unless you are confident you know what you're doing +#define BLE_SCAN_INTERVAL 150 // Used to determine antenna sharing between Bluetooth and WiFi. Do not modify unless you are confident you know what you're doing +#define BLE_SCAN_WINDOW 150 // Used to determine antenna sharing between Bluetooth and WiFi. Do not modify unless you are confident you know what you're doing // Maximum distance (in meters) to report. Devices that are calculated to be further than this distance in meters will not be reported #define MAX_DISTANCE 16