mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2026-10-31 22:02:17 +01:00
fix: broadcast memStatus every 30s
It went out whenever free heap moved by 1.5 KB and 7s had passed, which with normal traffic was about 240 times an hour. Send it every 30s instead. It is also the one event always sent, so 30s keeps Home Assistant well inside its 60s receive timeout. Per-client sends and the web UI's room are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
bd7ed17a97
commit
66d264e4b5
2 changed files with 9 additions and 25 deletions
|
|
@ -12,6 +12,9 @@
|
|||
// changes and not more often than this.
|
||||
#define RSSI_EMIT_MIN_DBM 3
|
||||
#define RSSI_EMIT_MIN_MS 10000
|
||||
// How often memStatus is broadcast. It is also the one event that is always
|
||||
// sent, so it must stay well under Home Assistant's 60s receive timeout.
|
||||
#define HEAP_EMIT_MS 30000
|
||||
// A roaming scan only moves to another AP this much stronger.
|
||||
#define ROAM_MIN_GAIN_DB 6
|
||||
class ESPNetwork {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue