Commit Graph
3831 Commits
Author SHA1 Message Date
Jason Huebert 8d58346b23 fix: report the real firmware version in the MQTT observer
MQTTObserver.cpp is its own translation unit and never saw FIRMWARE_VERSION
(defined in simple_repeater/MyMesh.h), so status/client_version and the JWT
client claim fell back to "unknown" on any build that does not inject the
macro. Pass the version from MyMesh::begin, which already has it.
2026-10-17 09:46:42 -05:00
Jason Huebert 21f8658dcd docs: map the MQTT observer in AGENTS.md
Add MQTT_OBSERVER.md to the guides, examples/mqtt_observer/ + observer_targets.ini
to the code map and fork-owned set, the native_mqtt_observer(-san) envs and the
observer flash target to the build notes, the observer release inclusion, the
observer capture hooks in MyMesh, and the observer-compat invariants.
2026-10-16 21:10:29 -05:00
Jason Huebert 117019564b docs: rewrite the observer manual as a user guide
Restructure MQTT_OBSERVER.md in the FILTER/FLEET user-guide mold: what it does,
firmware targets, quick start, setup (Wi-Fi/time, identity, addresses/TLS,
auth, capture switches, topics), a full command reference, payload schemas,
delivery behaviour, recipes, a status/troubleshooting table, the security
model, and limits. Add an MQTT observer section to README.md pointing at it.
2026-10-16 21:09:19 -05:00
Jason Huebert 7351c07bc4 test: broaden MQTT observer coverage
Add fresh-install default checks, hostile-string validators (topic/owner/ntp/
audience/email/iata), topic-template literal and empty-template behavior,
scheme-less URI inference, command-slot boundary rejection, and the retry
jitter window. 24 -> 31 cases.
2026-10-16 21:04:46 -05:00
Jason Huebert e0184e6dce docs: record observer TX, JWT, last-will and config-isolation details
Document the TX uplink and retained offline last will, the reference JWT claim
set (publicKey/aud/iat/exp/client + owner/email, hex signature) that matches
the downstream observers, duplicate publishes from the pre-dedup receive hook,
and the MQO1 config magic that isolates this fork's /mqtt_prefs from the others.
2026-10-16 21:04:17 -05:00
Jason Huebert a2eec0f951 ci: build observer targets in the regular release set
Ship the optional MQTT observer firmware in the same release as the plain
repeaters instead of a separate channel: local-release-build.sh now includes
observer envs in its default target list and drops the --observers flag (use
--filter _repeater_observer to build only observers). Updates the release-target
test and the observer manual.
2026-10-16 21:04:01 -05:00
Jason Huebert 2db295ed0e feat: publish a retained offline status as the observer last will
Register a retained QoS 1 status:"offline" last will on each broker's status
topic so a feed flips the node offline as soon as the broker notices an
unexpected session drop. The will body and topic live in BrokerRuntime because
the library keeps the pointers; the topic/status are reused via a shared
buildStatusMessage() so online and offline share one schema.
2026-10-16 21:03:39 -05:00
Jason Huebert 8579db8e80 feat: uplink own adverts by default in the MQTT observer
Add a shared TX uplink gate (mqtt.tx off|on|advert, default advert) and a
logTx capture hook so a node appears on map/analyzer feeds from its own
adverts without uploading every repeated frame. TX events carry no
SNR/RSSI/score and no raw frame; the packet schema gains direction "tx".
Adds tx_enabled to the observer config (record version 5, payload 1509 B,
no migration - never deployed).
2026-10-16 21:02:34 -05:00
Jason Huebert e99d19dedf feat: defer observer broker connects without internal-heap headroom
A second TLS client started on a fragmented internal heap aborts a non-PSRAM
ESP32. Gate connect() on free/largest internal-heap bytes (secure slots need
much more than plaintext), deferring and retrying every 30 s instead of
crashing. The decision is a pure policy function so the host suite covers it;
the deferral is never a terminal state, so a broker missed during a heap
squeeze is still retried after a long outage.
2026-10-16 21:01:06 -05:00
Jason Huebert 3587db48cf merge: bring repeater-filter-mqtt-observer up to date with repeater-filter
Resolve the three overlapping-file conflicts (MyMesh.cpp/.h observer hooks
vs the fleet ack hook and MeshClockSync member; platformio.ini observer vs
mesh-clock native envs) as unions. No observer behavior changes here.
2026-10-16 21:00:17 -05:00
Jason Huebert ed9846bb0a merge: fleet ack retry refusal fix and AGENTS test counts v1.18.0-dev.2 filter-v1.18.0-dev.2 2026-10-16 16:17:03 -05:00
Jason Huebert 9a22c97c2f docs: refresh AGENTS.md test counts
Filter 295->301, fleet 82->112, battery 44->50.
2026-10-16 16:17:03 -05:00
Jason Huebert 8e48f23e28 fix: keep ack retry pending when the packet pool refuses the resend
A refused retry previously counted as sent (rtx) and dropped the reply,
silently losing it. Retain the slot and retry after FLEET_ACK_RETRY_BACKOFF_MS,
incrementing rtx only once the resend is queued. sendAlert() now reports the
sender's result instead of always claiming success. Adds regression tests and
documents the backoff.
2026-10-16 16:17:02 -05:00
Jason Huebert 4bec5e8b20 merge: readable paginated filter list 2026-10-16 15:56:21 -05:00
Jason Huebert ae3b207136 merge: ack repeat confirmation 2026-10-16 15:52:58 -05:00
Jason Huebert 6a28496026 docs: map ack repeat confirmation in AGENTS.md 2026-10-16 15:52:19 -05:00
Jason Huebert d8a89ded40 feat: confirm !ack replies by hearing a repeater repeat them
A fleet !ack reply is re-sent once, byte-identically, when no repeater is
heard repeating it within FLEET_ACK_REPEAT_WINDOW_MS (5 s). The frozen
group-text timestamp makes the retry the same on-air packet, so every node
that already relayed attempt 1 suppresses the copy at the mesh layer: a
retry never duplicates and a healthy fleet still sees one reply per node.

The receive-side detector hooks MyMesh::logRx() (every RX packet, before the
core dedup gate) and matches the sent packet's hash, which covers payload
type + payload (path excluded), requiring at least one hop so a zero-hop
bridge/mirror echo does not confirm. FleetManager now freezes the timestamp
and reports the hash through an extended send callback; FLEET_ACK_RETRY=0
restores the single fire-and-forget send. The status line gains await/rtx;
fleet off / chan clear now cancel queued and awaiting acks too.
2026-10-16 15:50:42 -05:00
Jason Huebert 47f87d0e8c docs: map battery alerts in AGENTS.md 2026-10-16 15:25:51 -05:00
Jason Huebert 869092957f docs: document battery alerts on the fleet channel
Add a BATTERY.md Alerts section (when alerts fire, the enable condition, the
on-air format, relay-while-suspended, RAM-only) and note battery alerts under
FLEET.md's Battery supersession.
2026-10-16 15:20:27 -05:00
Jason Huebert 31e51b7dbe feat: announce battery gate transitions on the fleet channel
MyMesh::loop() drains the gate's pending transition and sends 'BATT SUSPEND
<mv>' / 'BATT RESUME <mv>' via FleetManager::sendAlert, alongside the existing
fleet service glue.
2026-10-16 15:20:26 -05:00
Jason Huebert 9cc2caeb55 feat: fleet sendAlert on the configured channel
Originate an unsolicited alert as a plain group text on the fleet channel,
reusing the injected sender (name prefix + flood) used by !ack replies. It is a
no-op when fleet is off, has no channel, or the sender is unwired.
2026-10-16 15:20:26 -05:00
Jason Huebert 226f879a02 feat: battery gate state-change event (RAM-only)
Record a one-shot suspend/resume transition in sample() and expose it via
takeStateChange(). The event is RAM-only and cleared by resetToDefaults()/load()
so a reload never alerts late; operator toggles and reconfigures raise none.
2026-10-16 15:20:25 -05:00
Jason Huebert a0adaa4dae feat: readable paginated filter list and trimmed get
filter list now echoes the same predicate syntax as filter get instead of
an opaque <idx><e|d><D|F><digest> token: one readable line per rule,
'<idx>: <body>'. Enabled is implicit; only a disabled rule prints
'disabled'. The header is gone (state and counts live in 'filter'), and
the rule digest is no longer printed anywhere (it stays internal as the
prob-roll salt).

list pages like chan list: a listing cut for space ends with a '...' line
and resumes at 'filter list <last-index + 1>'. A rule too large for its
line is cut at a field boundary and marked '..', never a partial value.
filter get drops the 'r0 en' prefix and moves 'pass=' into the stats tail
(hits=/pass=/air=), so a list entry's body is byte-identical to get's.

Docs: FILTER.md gets the new grammar, the '...'/'..' markers, the
enabled-is-implicit note and the digest removal, plus a troubleshooting
row. Tests: new paging/continuation, abbreviation, empty, bad-start,
disabled-rendering and body-consistency cases; the digest-oracle tests now
compare raw persisted records.
2026-10-16 15:04:17 -05:00
Jason Huebert adb4c3ebc6 refactor: extract shared rule rendering from cliGet
Split the per-rule detail out of cliGet() into formatRuleBody() (enabled
and action words plus predicates) and formatRuleStats() (the counter
tail), so filter list can reuse the same rendering as filter get. Pure
refactor: output is byte-identical and the suite is unchanged.
2026-10-16 14:56:17 -05:00
Jason Huebert f66cd5fbe2 merge: mesh clock cleanup 2026-10-16 14:52:02 -05:00
Jason Huebert b38ac83928 refactor: fold mesh clock reset indirection 2026-10-16 14:51:51 -05:00
Jason Huebert 94cf8731aa merge: strict mesh clock advert floor 2026-10-16 14:45:21 -05:00
Jason Huebert f7ee516798 fix: reject pre-build advert timestamps 2026-10-16 14:45:21 -05:00
Jason Huebert 3519f413e3 merge: mesh clock sync docs 2026-10-16 14:37:08 -05:00
Jason Huebert f4b5027ddd docs: note mesh clock sync in AGENTS 2026-10-16 14:37:08 -05:00
Jason Huebert d7cd2bbdf5 merge: mesh clock sync 2026-10-16 14:35:36 -05:00
Jason Huebert 2b8b6e61b7 feat: add mesh clock sync 2026-10-16 14:35:26 -05:00
Jason Huebert f4d5a95c28 merge: release base from upstream version commit v1.18.0-dev.1 filter-v1.18.0-dev.1 2026-10-15 09:03:02 -05:00
Jason Huebert bac4a37d4f fix: derive release base from upstream version commit
Upstream now tags each release on the main merge commit (companion-v1.18.0
-> main's "Merge branch 'dev'"), which is not reachable from the dev-based
channel branch. git describe therefore fell back to the previous tag and cut
filter-v1.17.1-dev.19 instead of moving the base to 1.18.0.

Derive the base from the reachable '* version X.Y.Z' commit the tag mirrors,
falling back to the companion-v* tag for trees that lack it.
2026-10-15 09:03:01 -05:00
github-actions[bot] 2a2722e5e4 Merge remote-tracking branch 'origin/dev' into repeater-filter 2026-10-15 13:40:59 +00:00
Scott Powell 07a833bbbe * version 1.18.0 2026-10-15 19:42:01 +11:00
ripplebiz 9043a2bbf8 Merge pull request #3596 from recrof/wifi-companion-boards
added dynamic wifi to: heltec wsl3, v4r8, wireless paper; rak 3112; seeed xiao s3 (wio)
2026-10-15 19:35:32 +11:00
Rastislav Vysoky 97c0aec8d6 added dynamic wifi to: heltec wsl3, v4r8, wireless paper; rak 3112; xiao s3 (wio) 2026-10-15 09:57:31 +02:00
ripplebiz f1b608a777 Merge pull request #2377 from fschrempf/dev
Disable NRF52 undervoltage bootlock feature
2026-10-15 15:02:12 +11:00
Jason Huebert 6e9c8f17b0 merge: split upstream sync from stable promotion 2026-10-14 10:05:45 -05:00
Jason Huebert b620729631 ci: split upstream sync from stable promotion 2026-10-14 09:59:58 -05:00
Liam Cottle 2586f7abe3 Merge pull request #3591 from liamcottle/feature/companion-ble-wifi
Add WiFi support to Heltec v3 and v4 BLE variants
2026-10-14 20:23:11 +13:00
liamcottle a0fc769660 rework companion ui for ip address so it fits in multi interface variants 2026-10-14 16:29:41 +13:00
liamcottle c0d00a060a enable wifi interface for heltec v4 ble variant 2026-10-14 15:16:55 +13:00
liamcottle 590bc23ab9 enable wifi interface for heltec v3 ble variant 2026-10-14 15:05:00 +13:00
Liam Cottle 8e48e01a4b Merge pull request #3589 from meshcore-dev/remove-room-repeater
Room: "set repeat" CLI now deprecated
2026-10-14 14:27:54 +13:00
Scott Powell 481f72cae7 * only 'repeat on' now intercepted 2026-10-14 12:21:38 +11:00
ripplebiz d86cad8a82 Merge pull request #3575 from agessaman/feat/lr1121-dual-band-power
LR1121: keep TX power valid across sub-GHz and 2.4 GHz
2026-10-14 12:04:47 +11:00
ripplebiz 97113a7050 Merge pull request #3574 from agessaman/feat/waveshare-esp32s3-lr1121
feat(variants): add Waveshare ESP32-S3-LR1121
2026-10-14 12:00:11 +11:00
Scott Powell 8579c66747 * Room: "set repeat" CLI now deprecated 2026-10-14 11:48:58 +11:00