Document missing_after_secs default as fallback only
The code default stays 30 s for configs that omit the key, but 30 s false-locks with the companion beacon (event gaps of 25-60 s are routine). Docs now say explicitly that shipped configs must set 60+.
This commit is contained in:
1 parent
923d0fc485
commit
4e4bf28508
3 files changed
+6
-2
No files matched your search
@@ -70,7 +70,9 @@ rearms monitoring. See README.md for the full design.
|
||||
daemon only hears it a fraction of the time (2-20% duty), and frozen
|
||||
RSSI dedupes catches within one rotation window — event gaps of
|
||||
25-60 s are routine. `missing_after_secs` must be well above that
|
||||
(30 s false-locked twice; 60 s is the sane floor).
|
||||
(30 s false-locked twice; 60 s is the sane floor). The code default
|
||||
stays 30 as a conservative fallback for configs that omit the key —
|
||||
shipped configs (config.toml.example) must set 60 explicitly.
|
||||
- `Device1.Connect` is the only reliable "is it actually there" oracle,
|
||||
and it works whenever the phone advertises — but connection attempts
|
||||
stall or abort (`le-connection-abort-by-local`) while our own
|
||||
|
||||
@@ -180,7 +180,7 @@ See `config.toml.example`; every knob is documented there. Highlights:
|
||||
| key | default | meaning |
|
||||
| ---------------------- | ------- | ------------------------------------------ |
|
||||
| `device_mac` | — | identity MAC of the paired phone |
|
||||
| `missing_after_secs` | 30 | absence confirmation before locking |
|
||||
| `missing_after_secs` | 30 (use 60+) | absence confirmation; 30 is only the fallback, false-locks with the companion app |
|
||||
| `presence_timeout_secs`| 15 | how fresh an update must be to count |
|
||||
| `rssi_floor` / `rssi_lock` | -90/-80 | discovery floor / out-of-range threshold |
|
||||
| `duty.*` | see file| per-state scan window/interval |
|
||||
|
||||
@@ -6,6 +6,8 @@ use std::time::Duration;
|
||||
fn presence_timeout_secs() -> u64 {
|
||||
15
|
||||
}
|
||||
/// Fallback for configs that omit the key. 30 s false-locks with the
|
||||
/// companion beacon (see config.toml.example); real configs should set 60.
|
||||
fn missing_after_secs() -> u64 {
|
||||
30
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user