Daniel Novak
b74ba54530
Move block-alignment check before HMAC computation
...
Address review feedback:
- Move the alignment check before the HMAC-SHA256 computation to skip
expensive crypto on obviously malformed packets
- Update MACThenDecrypt header comment to document block-alignment as a
reason for returning zero
2026-02-26 09:08:06 +01:00
agessaman
c8e220b1ba
Refactor Packet handling in MQTTMessageBuilder to support multibyte paths. Update path length handling in Packet::writeTo and Packet::readFrom methods, ensuring correct byte length calculations. Modify path string formatting in MQTTMessageBuilder for improved clarity on path details.
2026-02-25 22:01:44 -08:00
Scott Powell
b67decfba0
* bug fix: Packet::writeTo(), Packet::readFrom()
2026-02-26 15:36:21 +11: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
agessaman
ee1a9b4ab7
Remove unused preprocessor directive in MyMesh.cpp
2026-02-25 19:38:39 -08:00
Scott Powell
ca81f645ed
Merge branch 'multibyte-paths' into dev
2026-02-26 12:30:23 +11:00
ripplebiz
5280433098
Merge pull request #1820 from recrof/patch-1
...
Update default preset to EU/UK (Narrow)
2026-02-26 12:08:17 +11:00
lincomatic
557d714c3c
don't limit bridge_baud to 115200
2026-02-25 07:52:42 -08:00
Scott Powell
def01889aa
Merge branch 'dev' into multibyte-paths
2026-02-25 17:11:51 +11:00
Scott Powell
8737c64fdb
* Packet::copyPath() fix
2026-02-25 17:10:31 +11:00
Liam Cottle
eeae32b25d
Merge pull request #1826 from dreirund/docs_-_fix-faq.md-bogous-last-tableofcontentsentry
...
docs/faq.md: Table of Contents: Remove bogous `[| | High Output | 22 dBm | 28 dBm | |](#--high-output--22-dbm--28-dbm--)`
2026-02-25 15:25:26 +13:00
Liam Cottle
1bde7de521
Merge pull request #1822 from dreirund/docs_-_add-more-other-projects
...
docs/faq.md: Section 5.14: Add more external projects, and categorise the section.
2026-02-25 15:18:15 +13:00
Liam Cottle
e6e87fb8ca
Merge pull request #1838 from weebl2000/github_workflows_sanitycheck
...
Add basic sanity test github PR workflow
2026-02-25 14:52:10 +13:00
Wessel Nieboer
15cce12efd
Add basic sanity test github PR workflow
...
Build a few generic variants to verify at least those compile. Can't
hurt.
2026-02-25 02:43:48 +01:00
agessaman and Cursor
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
Wessel Nieboer
8bf63256b6
Fix remote LNA toggle bugs: correct register comparison, add missing implementations, wire up companion radio
...
getRxBoostedGain was returned true because both 0x94 (power saving) and
0x96 (boosted gain = 1) return true
2026-02-24 23:49:06 +01:00
Oliver Weyhmüller
82dd0cd996
Set OFFLINE_QUEUE_SIZE=256 for missing WiFi companion ESP envs
2026-02-24 22:26:24 +01:00
dreirund
751a3e49be
Merge pull request #1 from dreirund/docs_-_categorise-faq: "docs/faq.md: Categorising section 5.14. "Q: Are there are projects built around MeshCore?""
...
docs/faq.md: Categorising section 5.14. "Q: Are there are projects built around MeshCore?"
2026-02-24 18:21:36 +01:00
dreirund
ff72564bca
docs/faq.md: Categorising section 5.14. "Q: Are there are projects built around MeshCore?".
...
In `[docs/faq.md](https://github.com/meshcore-dev/MeshCore/blob/main/docs/faq.md )`, the entries are now grouped by category.
This patch applies on top of https://github.com/meshcore-dev/MeshCore/pull/1822 .
2026-02-24 18:19:50 +01:00
dreirund
b16adee4bb
docs/faq.md: Table of Contents: Remove bogous [| | High Output | 22 dBm | 28 dBm | |](#--high-output--22-dbm--28-dbm--).
...
The table of contents of `docs/faq.md` had at the end a bogous entry
```markdown
- [| | High Output | 22 dBm | 28 dBm | |](#--high-output--22-dbm--28-dbm--)
```
This patch removes that bogous entry.
2026-02-24 17:48:30 +01:00
dreirund
5e24d03a91
faq.md: Section 5.14: Added more external projects.
...
Added to section 5.14 "Are there are projects built around MeshCore?":
* awesome-meshcore
* meshcore-open
* MeshCore-Cardputer-ADV
* LunarCore
* MC-Term
* Meck
* Meshcore for Wio Tracker L1 Pro
* MeshCore map auto uploader
2026-02-24 13:26:30 +01:00
Scott Powell
f4748a7f9d
* misc
2026-02-24 21:30:04 +11:00
Rastislav Vysoky
b777a7c635
Update default preset to EU/UK (Narrow)
2026-02-24 11:28:23 +01:00
Scott Powell
b14879ce2d
* CMD_GET_ADVERT_PATH bug fix
2026-02-24 14:23:59 +11:00
Robert Ekl
b43319d1a4
docs: correct CLI command forms and targeted typos
2026-02-23 18:53:20 -06:00
Liam Cottle
f7c8cf1146
Merge pull request #1808 from callum5892/dev
...
Added build flags for M5Stack Unit C6L
2026-02-24 12:24:56 +13:00
Daniel Novak
9c9a2ba2db
Fix stack buffer overflow in MACThenDecrypt via block-alignment check
...
Add validation that ciphertext length is a multiple of CIPHER_BLOCK_SIZE
before calling decrypt(). The decrypt() function processes data in 16-byte
AES blocks, rounding up non-aligned input, which can write up to 8 bytes
past the caller's stack buffer. This can be triggered by crafted packets
that pass the 2-byte HMAC check (1-in-65536 chance per attempt), enabling
a persistent denial-of-service attack against repeaters and other nodes.
2026-02-23 21:40:17 +01:00
Adam Gessaman
59e262243b
Update MQTT implementation instructions
...
Added instructions for setting mqtt.iata and reorganized steps.
2026-02-23 09:39:54 -08:00
callum5892
9f4eeeeceb
Added build flags for M5Stack Unit C6L
...
Enabled USB-CDC on boot for M5Stack_Unit_C6L_companion_radio_usb to fix serial connection issues
2026-02-23 17:31:18 +00:00
Scott Powell
9d5c4865c3
* room server fix
2026-02-24 01:08:11 +11:00
Scott Powell
213d085012
* revert CMD_SEND_SELF_ADVERT, use _prefs.path_hash_mode
2026-02-24 00:08:13 +11:00
Scott Powell
45564bad9b
* Dispatcher bug fixes
2026-02-23 23:51:30 +11:00
Scott Powell
5b0884ad2d
* added CMD_SET_PATH_HASH_MODE
2026-02-23 21:08:22 +11:00
Scott Powell
e52d57c065
* companion: new pref: path_hash_mode (0..2)
...
* companion: new field in CMD_SET_OTHER_PARAMS, path_hash_mode
* companion: CMD_SEND_SELF_ADVERT, cmd_frame[1] now holds the path hash size (0 = zero hop, 1..3 = flood path hash size)
2026-02-23 18:26:56 +11:00
Scott Powell
a66773bac0
* CommonCLI: added "get/set path.hash.mode "
2026-02-23 14:25:19 +11:00
Scott Powell
05e7b682b9
Merge branch 'dev' into multibyte-paths
2026-02-23 13:11:36 +11:00
ripplebiz
9c318561da
Merge pull request #1792 from ElectroMW/feature/t-beam-supreme-improvements
...
T-Beam Supreme - Make full use of board's 8MB Flash and add Companion WiFi target
2026-02-23 12:38:56 +11:00
ripplebiz
2e0fa3ec46
Merge pull request #1794 from accumulator/heltec_wireless_tracker_companion_usb
...
add companion usb build target for Heltec Wireless Tracker
2026-02-23 12:37:02 +11:00
ripplebiz
8ee4867397
Merge pull request #1795 from DanielNovak/fix-packetqueue-millis-wraparound
...
Fix millis() wraparound in PacketQueue time comparisons
2026-02-23 12:33:21 +11:00
Sam Koucha
5a885bffe4
Make full use of board's 8MB Flash and add companion WiFI target
2026-02-22 18:14:39 +00:00
Daniel Novak
011edd3c99
Fix millis() wraparound in PacketQueue time comparisons
...
PacketQueue::countBefore() and PacketQueue::get() use unsigned
comparison (_schedule_table[j] > now) to check if a packet is
scheduled for the future. This breaks when millis() wraps around
after ~49.7 days: packets scheduled just before the wrap appear
to be in the far future and get stuck in the queue.
Use signed subtraction instead, matching the approach already used
by Dispatcher::millisHasNowPassed(). This correctly handles the
wraparound for time differences up to ~24.8 days in either
direction, well beyond the maximum queue delay of 32 seconds.
2026-02-22 18:01:55 +01:00
Sander van Grieken
3dc14976a0
add companion usb build target for Heltec Wireless Tracker
2026-02-22 17:57:36 +01:00
Scott Powell
3e76161e9c
* refactor of Contact/Client out_path_len (stored in files), from signed to unsigned byte (+2 squashed commits)
...
Squashed commits:
[f326e25] * misc
[fa5152e] * new 'path mode' parsing in Dispatcher
2026-02-21 19:35:51 +11:00
ripplebiz
d05d6abab8
Merge pull request #1726 from weebl2000/fix-packet-pool-leak-queue-full
...
Fix packet pool leak when rx queue is full
2026-02-21 17:18:02 +11:00
ripplebiz
c2abe894c9
Merge pull request #1728 from oltaco/nrf52-bootloader-version
...
NRF52: Add get bootloader.ver command for NRF52
2026-02-21 12:56:52 +11:00
Liam Cottle
f903c50e9d
Merge pull request #1758 from jeroenvermeulen/patch-1
...
Update admin password command description
2026-02-21 12:45:02 +13:00
Jeroen Vermeulen
246f5352d6
Update admin password command description
...
Tested in v1.13.
These commands don't work anymore:
```
get password
-> ??: password
set password secret
-> unknown config: password secret
```
This does work:
```
password secret
-> password now: secret
```
2026-02-20 20:48:48 +01:00
Kevin Le
13d0dff918
Reverted to use GPIO 17, 18 as I2C for Heltec v4 repeater
2026-02-18 22:38:24 +07:00
Kevin Le
44b80d00c2
Disabled periph_power for Heltec v4's display
2026-02-18 22:32:01 +07:00
Kevin Le
f6603fe7a5
Set back PIN_VEXT_EN_ACTIVE=HIGH
2026-02-18 22:32:01 +07:00