Shorter scan interval and window makes less sendFails

This commit is contained in:
DTTerastar 2021-03-30 08:23:55 -04:00
parent 703982daf6
commit be859102dc
2 changed files with 5 additions and 4 deletions

3
.gitignore vendored
View File

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

View File

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