Add min/max/avg history queries to repeaters
Move TimeSeriesData from simple_sensor into src/helpers and drive it with monotonic uptime, so RTC changes cannot stall recording or break queries. Keep the old RTCClock* overloads as deprecated for custom sensor sketches. Record 24h of battery, noise floor, TX/RX airtime % and MCU temperature on repeaters and answer the existing 0x04 min/max/avg request using the same format as sensor nodes. No packets are sent by this feature. REPEATER_HISTORY_SLOTS=0 removes it; default off on STM32/RP2040. Add native tests for TimeSeriesData and document the request and channels.
This commit is contained in:
1 parent
9f10793f7a
commit
64f75005b5
14 files changed
+530
-85
No files matched your search
@@ -1175,6 +1175,13 @@ region save
|
||||
|
||||
---
|
||||
|
||||
### Repeater health history
|
||||
|
||||
History is queried over the mesh using the sensor-compatible `0x04` min/max/average
|
||||
request; there is no history CLI command. Retention and recording interval are controlled
|
||||
by `REPEATER_HISTORY_SLOTS` and `REPEATER_HISTORY_INTERVAL_SECS` at build time.
|
||||
See [Repeater health history](repeater_history.md) for the channel mapping and flags.
|
||||
|
||||
### Ethernet (when Ethernet support is compiled in)
|
||||
|
||||
Ethernet support is available on RAK4631 boards with a RAK13800 (W5100S) Ethernet module. Use the `_ethernet` firmware variants (e.g. `RAK_4631_repeater_ethernet`) to enable this feature.
|
||||
|
||||
Reference in new issue
Block a user