Tighten sample timeouts now that the companion app ships
With the beacon app advertising reliably from a foreground service and rotating its payload, the pause-tolerant 120s missing_after is no longer needed: 30s/15s restores a ~40s lock after leaving while the 10s connect probe keeps guarding against silent stretches. Third-party beacon apps still warrant 120s; the comments now say which tier applies.
This commit is contained in:
1 parent
44510411fc
commit
44f3d94d4b
1 file changed
+9
-7
+9
-7
@@ -6,17 +6,19 @@ device_mac = "AA:BB:CC:DD:EE:FF"
|
|||||||
#adapter = "hci0"
|
#adapter = "hci0"
|
||||||
|
|
||||||
# Lock the session after this long without strong evidence of presence.
|
# Lock the session after this long without strong evidence of presence.
|
||||||
# Beacon apps pause advertising for stretches while the phone sits still
|
# Before locking, the daemon additionally probes the phone with a 10s
|
||||||
# (Android doze / battery optimization / motion-gated beacons), so this
|
# connection attempt, which cancels the lock if the phone answers.
|
||||||
# must outlast those pauses — too small causes false locks. Before
|
# 30s is safe with the companion beacon app (android/): it advertises
|
||||||
# locking, the daemon additionally probes the phone with a 10s connection
|
# reliably from a foreground service and rotates its payload so the
|
||||||
# attempt, which cancels the lock if the phone answers.
|
# daemon always sees fresh evidence. Third-party beacon apps pause
|
||||||
missing_after_secs = 120
|
# advertising while the phone sits still — with those, raise this to
|
||||||
|
# 120s or expect occasional false locks.
|
||||||
|
missing_after_secs = 30
|
||||||
|
|
||||||
# Advertisement updates newer than this count as "recently seen".
|
# Advertisement updates newer than this count as "recently seen".
|
||||||
# Once updates stall past half of this, the radio steps up to the
|
# Once updates stall past half of this, the radio steps up to the
|
||||||
# suspect duty cycle while the state stays Present.
|
# suspect duty cycle while the state stays Present.
|
||||||
presence_timeout_secs = 30
|
presence_timeout_secs = 15
|
||||||
|
|
||||||
# Discovery only reports devices at or above this RSSI (dBm).
|
# Discovery only reports devices at or above this RSSI (dBm).
|
||||||
rssi_floor = -90
|
rssi_floor = -90
|
||||||
|
|||||||
Reference in new issue
Block a user