agessaman
eaf5fcbc9b
Update MQTT presets to include 'cascadiamesh' and enhance error messaging in CLI. Introduce keepalive configuration for MQTT presets and improve slot management in MQTTBridge for better token handling and connection stability.
2026-03-24 16:58:26 -07:00
agessaman
4a60f16683
Refactor logging and error handling in MyMesh and MQTTBridge. Implement checks for Serial availability before printing logs to prevent potential blocking. Update MQTTBridge to include circuit breaker logic for managing reconnect attempts and enhance slot management with new state tracking. Expand MQTTPresetDef to include a new preset with configurable token lifetime and retain options.
2026-03-23 20:21:47 -07:00
agessaman
95874f0c24
Enhance MQTT bridge implementation to support a new MeshRank preset, allowing for token-based authentication and custom topic templates. Update CLI commands for slot management, including new commands for setting tokens and topics. Improve documentation to reflect these changes and provide examples for configuring the new preset.
2026-03-22 11:06:37 -07:00
agessaman
b43e9618db
Refactor MQTT bridge implementation to support up to 3 configurable connection slots with built-in presets for LetsMesh Analyzer (US/EU) and MeshMapper. Update CLI commands for slot management and enhance configuration migration from legacy settings. Adjust related documentation and code structure for improved clarity and functionality.
2026-03-20 22:41:41 -07:00
agessaman
abe6e046fe
Merge branch 'upstream/dev' into mqtt-bridge-implementation
...
Reverted prior dev merge, then merged current meshcore-dev dev. Resolved
CommonCLI by restoring MQTT prefs flow with upstream com_prefs layout
(rx_boosted_gain at offset 79), rxgain CLI, poweroff/shutdown, and FEM
variant files from upstream.
Made-with: Cursor
2026-03-20 15:55:39 -07:00
agessaman
22eb9b87a3
Revert "Merge remote-tracking branch 'origin/dev' into mqtt-bridge-implementation"
...
This reverts commit 2b63765522 , reversing
changes made to 304719e8e0 .
2026-03-20 15:54:14 -07:00
agessaman
2b63765522
Merge remote-tracking branch 'origin/dev' into mqtt-bridge-implementation
2026-03-20 06:06:06 -07:00
João Brázio
92bef49c55
Merge branch 'dev' into 2026/remote-lna
2026-03-16 09:40:10 +00:00
Scott Powell
bb8dc5b55b
Merge branch 'main' into dev
2026-03-12 18:14:56 +11:00
ripplebiz
792f299986
Merge pull request #1873 from Specter242/codex/sensecap-solar-led-poweroff-parity
...
sensecap solar: add poweroff/shutdown support and nrf52 PM parity
2026-03-12 18:13:14 +11:00
Liam Cottle
a10476efd7
Merge pull request #1845 from lincomatic/repeaterbaud
...
don't limit bridge_baud to 115200
2026-03-11 11:51:00 +13:00
João Brázio
f858f2e4bb
Rename sx126x_rx_boosted_gain to rx_boosted_gain
2026-03-05 18:14:47 +00:00
João Brázio
8df87d5609
Merge remote-tracking branch 'upstream/dev' into 2026/remote-lna
2026-03-05 17:21:38 +00:00
agessaman
56ac85fa72
Merge upstream/dev into mqtt-bridge-implementation
...
Resolve conflict in CommonCLI.h: keep MQTT/WiFi/timezone fields and add
upstream loop_detect. Add loop_detect sanitization in loadPrefsInt.
Made-with: Cursor
2026-03-04 21:38:36 -08:00
Scott Powell
e233346bf0
* repeater: new "get/set loop.detect {off | minimal | moderate | strict }"
2026-03-05 16:26:09 +11:00
Liam Cottle
dc9e7abacc
Merge pull request #1490 from mesher-de/feature-0hop-cli
...
Add CLI-command for zerohop advert
2026-03-05 15:24:48 +13:00
agessaman
dcbbe5a6d7
Merge upstream/dev into mqtt-bridge-implementation
...
Resolve conflicts in Heltec tracker/v4 board files: keep upstream
GPIO setup (RTC hold release) and branch comments for GC1109 FEM.
Made-with: Cursor
2026-03-03 12:59:40 -08:00
Wessel Nieboer
d9e67222f5
prefs is 5 char length :nerd:
2026-02-28 19:07:38 +01:00
enricolorenzoni59
8ad17d1022
gps sync reply: fill buffer with text
2026-02-28 09:07:30 +00:00
Specter242
e323755990
sensecap solar: add poweroff command and board power/LED parity
2026-02-27 22:12:12 -05:00
João Brázio
64a16d7ad2
Merge branch 'dev' into 2026/remote-lna
2026-02-27 10:32:14 +00:00
agessaman
51e9907fa6
Merge upstream/dev into mqtt-bridge-implementation
...
Resolve conflicts in CommonCLI: keep upstream path_hash_mode and
sanitization (adc_multiplier, path_hash_mode constrain), retain
MQTT/NodePrefs layout and MQTT fields.
Made-with: Cursor
2026-02-25 19:41:42 -08:00
lincomatic
557d714c3c
don't limit bridge_baud to 115200
2026-02-25 07:52:42 -08:00
agessaman
397a48fc22
Merge upstream/dev into mqtt-bridge-implementation
...
Resolve conflicts: keep MQTT/WiFi/timezone/analyzer defaults and get
handlers, add upstream neighbour sort guard, adc_multiplier and
pending_discover, and bootloader.ver get handler.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-02-24 16:23:11 -08:00
Scott Powell
a66773bac0
* CommonCLI: added "get/set path.hash.mode "
2026-02-23 14:25:19 +11:00
taco
1500a5a9cb
add get bootloader.ver command for nrf52
2026-02-18 15:35:20 +11:00
mesher-de
8e404e9aea
add advert.zerohop command to CLI
2026-02-17 13:56:18 +01:00
agessaman
88ce0d33c3
Update platformio.ini for heltec_v4: switch to heltec_v4_oled configuration for MQTT observer and room server environments, adjusting build flags and source filters accordingly.
2026-02-16 08:39:29 -08:00
João Brázio
71136671bd
Implement remote lna toggle cli cmd
2026-02-10 15:02:23 +00:00
Adam Gessaman
8b841d9cfd
Merge remote-tracking branch 'origin/dev' into mqtt-bridge-implementation
2026-02-09 09:50:44 -08:00
Wessel Nieboer
d0720c63c2
Allow negative tx power
...
Like SX1262 allows -9 dBm lowest, some allow lower but that probably
isn't useful
2026-02-06 02:24:51 +01:00
Adam Gessaman
075552296a
Merge origin/dev into mqtt-bridge-implementation
...
Resolve conflict in variants/heltec_v4/platformio.ini by taking
origin/dev version for PA pin comments and SX126X_RX_BOOSTED_GAIN.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-02-05 09:55:37 -08:00
agessaman
498566e6c9
MQTT bridge: fix memory use, improve status reporting
...
- Main broker: only allocate _mqtt_client when custom broker configured
(analyzer-only saves one PsychicMqttClient). Reconnect main broker after
forced disconnect with 30s throttle; set last_attempt on disconnect so
throttle applies and avoids reconnect storms on flaky WiFi.
- Analyzer clients: call disconnect() when WiFi transitions to disconnected
so ESP-IDF frees MQTT buffers (it does not free on WiFi drop). Reduces
fragmentation and Max drop after disconnect/reconnect cycles.
- get wifi.status: report WiFi uptime (Xd Xh Xm Xs) when WITH_MQTT_BRIDGE.
Track connect time in bridge; backfill when already connected at first check.
- get mqtt.status: show msgs on/off, broker (connected/disconnected/n/a),
analyzer US/EU (connected/disconnected/off), and queue count.
Note: PsychicMqttClient change (register event only on first client creation)
belongs in the library repo if committed separately.
2026-02-02 19:09:31 -08:00
agessaman
d96c900f10
Merge upstream/dev into mqtt-bridge-implementation
...
Resolved conflict in variants/heltec_v4/platformio.ini by keeping
detailed comments and PIN_BOARD_SDA/SCL definitions from HEAD.
2026-01-27 12:50:30 -08:00
João Brázio
edeafde51c
Fix: Correct validation logic in isValidName function
2026-01-27 19:36:12 +00:00
Scott Powell
5627500988
* new "clkreboot" CLI command
2026-01-27 15:22:18 +11:00
agessaman
2a84e58b3a
Merge upstream/dev into mqtt-bridge-responsiveness-changes
...
Resolved conflicts in:
- examples/simple_repeater/MyMesh.cpp: kept analyzer/MQTT origin code, updated acl.load() signature
- examples/simple_room_server/MyMesh.cpp: kept MQTT bridge init, added acl parameter to _cli constructor
- src/helpers/CommonCLI.cpp: merged MQTT get commands with ADC/power management commands
2026-01-26 19:30:45 -08:00
liamcottle
7e24bd00b9
increase maximum flood advert interval to 168 hours (7 days)
2026-01-26 23:05:10 +13:00
liamcottle
ed589f9620
boot adverts are now zero hop instead of flood
2026-01-26 22:20:36 +13:00
ripplebiz
153bcdc6a3
Merge pull request #1457 from oltaco/remote-set-prvkey
...
Allow set prv.key over LoRa, clear ACL and validate key
2026-01-25 14:46:41 +11:00
taco
96ef5e5efe
allow set prv.key from remote, validate new prv.key
2026-01-25 01:32:48 +11:00
entr0p1
1f59e52880
nRF52840 Power Management - Phase 1 - Boot Low VBAT Voltage Lockout
...
Added NRF52840 power management core functionality:
- Boot‑voltage lockout
- Initial support for shutdown/reset reason storage and capture (via RESETREAS/GPREGRET2)
- LPCOMP wake (for voltage-driven shutdowns)
- VBUS wake (for voltage-driven shutdowns)
- Per-board shutdown handler for board-specific tasks
- Exposed CLI queries for power‑management status in CommonCLI.cpp
- Added documentation in docs/nrf52_power_management.md.
- Enabled power management support in Xiao nRF52840, RAK4631, Heltec T114 boards
2026-01-23 17:18:41 +11:00
agessaman
39ba020fab
Merge upstream/dev into mqtt-bridge-responsiveness-changes
...
Resolved conflicts in:
- examples/simple_repeater/MyMesh.cpp: merged comparison functions with new handler functions
- src/helpers/CommonCLI.cpp: merged MQTT fields handling with adc_multiplier and owner_info
- src/helpers/CommonCLI.h: merged NodePrefs struct changes
- variants/heltec_v3/platformio.ini: kept upstream WiFi settings
- variants/xiao_s3_wio/platformio.ini: added upstream environment definitions
Verified observer firmwares compile successfully.
2026-01-21 20:37:40 -08:00
agessaman
56f98997e6
Update MQTT preferences to support configurable WiFi power save mode
...
- Added conditional compilation for WiFi power save settings in setMQTTPrefsDefaults.
- Updated platformio.ini files across multiple variants to define MQTT_WIFI_POWER_SAVE_DEFAULT and related configurations.
- Set default WiFi power save mode to 1 (none) when not explicitly defined, enhancing flexibility for different hardware setups.
2026-01-18 13:40:01 -08:00
Scott Powell
65796c8f20
* CommonCLI: added "set name ..." validation
...
* ANON_REQ_TYPE_VER_OWNER, now removes commas from node_name
2026-01-09 16:28:08 +11:00
agessaman
ffa2a1ecdd
Refactor advert timer calculation in MyMesh and SensorMesh for type consistency
...
- Updated the advert timer calculation to explicitly cast the advert interval to an integer type, ensuring consistent behavior across different mesh implementations.
- Enhanced the savePrefs function in CommonCLI to trigger advert timer updates when the advert interval changes, improving responsiveness to user configuration changes.
- Removed the aggressive 4-hour health check in MQTTBridge to prevent connection instability, allowing the MQTT client library to manage connection health internally.
2026-01-08 20:57:28 -08:00
Scott Powell
5475043083
* new ANON_REQ_TYPE_VER_OWNER
...
* CommonCLI: new "get/set owner.info ..."
2026-01-09 11:07:31 +11:00
agessaman
8fa99611cb
Refactor loadPrefs in CommonCLI to handle fresh installs and upgrades. Introduce flags for fresh installations and upgrades, ensuring correct default settings for MQTT bridge. Migrate preferences from old filename and save updated settings accordingly.
2026-01-02 13:36:41 -08:00
agessaman
f7f1f83812
Enhance WiFi status handling in CommonCLI and MQTTBridge. Add command to retrieve WiFi connection status in CommonCLI and implement event-driven WiFi diagnostics in MQTTBridge for improved connection management and logging. Introduce periodic checks for WiFi status to facilitate faster reconnection attempts and better monitoring of disconnection events.
2026-01-02 13:36:41 -08:00
agessaman
34c8bea77f
Add WiFi power save mode configuration to CommonCLI and MQTTBridge. Update preferences structure to include power save settings and implement command handling for adjusting power save modes (none, min, max). Enhance MQTTBridge to apply power save settings on WiFi connection and enable auto-reconnect functionality.
2026-01-02 13:36:41 -08:00