From a5b798dcebd4ef2977b51855281f333b95abf0fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20M=C3=A4user?= Date: Thu, 5 Nov 2026 14:58:45 +0100 Subject: [PATCH] Recommend patient timeouts in the sample config Beacon apps pause advertising while the phone sits still, so the 30s default for missing_after_secs false-locked. Ship 120s plus comments explaining the beacon pauses and the 10s pre-lock connect probe; presence_timeout_secs 30 pairs with the duty escalation. --- config.toml.example | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/config.toml.example b/config.toml.example index 825dff2..8926284 100644 --- a/config.toml.example +++ b/config.toml.example @@ -6,10 +6,17 @@ device_mac = "AA:BB:CC:DD:EE:FF" #adapter = "hci0" # Lock the session after this long without strong evidence of presence. -missing_after_secs = 30 +# Beacon apps pause advertising for stretches while the phone sits still +# (Android doze / battery optimization / motion-gated beacons), so this +# must outlast those pauses — too small causes false locks. Before +# locking, the daemon additionally probes the phone with a 10s connection +# attempt, which cancels the lock if the phone answers. +missing_after_secs = 120 # Advertisement updates newer than this count as "recently seen". -presence_timeout_secs = 15 +# Once updates stall past half of this, the radio steps up to the +# suspect duty cycle while the state stays Present. +presence_timeout_secs = 30 # Discovery only reports devices at or above this RSSI (dBm). rssi_floor = -90