Commit Graph
23 Commits
Author SHA1 Message Date
Maxwell 64f75005b5 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.
2026-11-08 16:34:54 +02:00
ripplebiz deaacca580 Merge pull request #3131 from liekmarflow/feature/board-api-hooks
Add board loop hook for periodic work
2026-09-22 16:43:18 +10:00
Wolfram Keil ba345d486c Add board loop hook for periodic work 2026-09-22 08:01:48 +02:00
ripplebiz 191e5ee2f7 Merge pull request #3402 from meshcore-dev/sensor-improvements
Sensor improvements
2026-09-21 19:03:18 +10:00
João Brázio dbb2aeee00 Ensure command buffers stay NUL-terminated to prevent overflow
The serial command buffers must stay NUL-terminated within their
bounds: if they ever aren't, strlen() can return >= sizeof(command)
and the read loop would index past the buffer. Additionally, a full
buffer now becomes a completed line (end-of-line marker placed
inside the buffer, NUL terminator kept) instead of overwriting the
terminator and silently corrupting the buffer for the next pass.

Applies to the serial CLI readers of the repeater, room server,
sensor and secure chat examples, and to the CLI rescue reader of
the companion example.
2026-09-04 20:01:39 +01:00
Scott Powell 595bf44beb * sensor: CLI "sub" and "unsub" commands 2026-09-04 22:02:49 +10:00
Quency-D 1b2faf07fc Merge branch 'dev' into solar-watchdog 2026-05-09 18:08:32 +08:00
Scott Powell 8903b907d1 * Refactor: removed duplicated radio_rng_seed(), radio_set_params(), radio_set_tx_power() 2026-05-01 14:47:07 +10:00
Wessel Nieboer d7b406eb9a Address review comments 2026-03-04 03:13:53 +01:00
Quency-D 03fa3b767e Merge branch 'dev' into solar-watchdog 2026-02-09 10:15:50 +08:00
liamcottle c8992ae5b6 added build flag to enable/disable boot advert 2026-01-26 22:39:39 +13:00
liamcottle 6cb97cca77 boot adverts are now zero hop instead of flood 2026-01-26 22:20:36 +13:00
Quency-D e902293246 Add an external watchdog module 2026-01-22 15:03:40 +08:00
Scott Powell 7ff483ab74 * Fix for VolatileRTCClock wrapping around to initial synced time every 49 days 2025-10-30 16:45:50 +11:00
Scott Powell 8bef2e75a6 * new CommonCLI commands: "get prv.key", "set prv.key {hex}" 2025-08-01 19:28:44 +10:00
Scott Powell 11b15d925e * simple_sensor: handleCustomCommand() hook 2025-07-13 15:30:49 +10:00
Scott Powell c4f0f1eede * simple_sensor: added alert send queue, with retries, checks for ACKs, etc. Low pri alerts only 1 send attempt, otherwise 4 attempts 2025-07-12 12:26:16 +10:00
Scott Powell fa06dee97c * sensor node: now have two alert priorities, LO, HI 2025-07-09 15:50:36 +10:00
Scott Powell 44ae1d42b5 * misc fixes 2025-07-08 23:19:35 +10:00
Scott Powell 8c56e9901f * refactor: CommonCLI, processing of optional command prefix moved to handleCommand() call sites
* Sensor, anon_req now just for admin login (guest password now unused)
* special CLI command, "setperm {pubkey-hex} {permissions-int16}" for admin(s) to manage user access (permissions 0 = remove)
2025-07-08 23:19:35 +10:00
Scott Powell 3bb33a8017 * simplified alertIf()
* refactored TimeSeriesData to top-level class
2025-07-08 23:19:35 +10:00
Scott Powell a7f8ac6b9d * added REQ_TYPE_GET_AVG_MIN_MAX
* TimeSeriesData
* very basic SensorMesh::sendAlert()
2025-07-08 23:19:35 +10:00
Scott Powell 2df34a67b1 * first cut of new simple_sensor sketch 2025-07-08 23:19:34 +10:00