João Brázio
95214e8c40
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
2c0ace2519
* new TXT_TYPE_CLI_COMMAND (3)
2026-08-23 22:04:05 +10:00
Scott Powell
afb969ccca
* initial wiring/routing of CLI commands to companion (either via app/serial interface, or remotely via txt message)
2026-08-21 20:55:57 +10:00
Quency-D
2867542cfa
Merge branch 'dev' into solar-watchdog
2026-07-04 16:47:37 +08:00
Scott Powell
07648e3344
* fix for anon contacts when full
2026-06-14 17:50:41 +10:00
Quency-D
ec9fe67afe
Merge branch 'dev' into solar-watchdog
2026-05-09 18:08:32 +08:00
Scott Powell
0a8a0a4904
* Refactor: removed duplicated radio_rng_seed(), radio_set_params(), radio_set_tx_power()
2026-05-01 14:47:07 +10:00
Quency-D
7e0d9f6f39
Merge pull request #10 from meshcore-dev/dev
...
merge Dev
2026-04-27 14:48:26 +08:00
ripplebiz
cf0cc851d4
Merge pull request #1297 from ViezeVingertjes/feature/duty-cycle-token-bucket
...
Implement token bucket duty cycle enforcement
2026-03-08 23:54:32 +11:00
Wessel Nieboer
1ab8a6f6da
Address review comments
2026-03-04 03:13:53 +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
Quency-D
9df34e09d0
Merge branch 'dev' into solar-watchdog
2026-02-09 10:15:50 +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
liamcottle
d13bc446de
added build flag to enable/disable boot advert
2026-01-26 22:39:39 +13:00
Quency-D
c89a0e9929
Add an external watchdog module
2026-01-22 15:03:40 +08:00
ViezeVingertjes
eb4fa032ff
Implement token bucket duty cycle enforcement
2026-01-04 21:33:46 +01:00
Scott Powell
3d9378d91e
* Fix for VolatileRTCClock wrapping around to initial synced time every 49 days
2025-10-30 16:45:50 +11:00
Scott Powell
74dea260e5
* proposed change for re-trying reciprocal path transmit
2025-09-08 19:22:59 +10:00
Scott Powell
e6ce3c896d
* companion: new CMD_GET_ADVERT_PATH -> RESP_CODE_ADVERT_PATH
2025-06-18 16:02:09 +10:00
Scott Powell
56b84408e4
* workaround for nRF + LittleFS glitch with seek/truncate
2025-05-20 16:29:09 +10:00
Scott Powell
99774f10ac
* new: SensorManager
...
* BasChatMesh: new onContactRequest(), for PAYLOAD_TYPE_REQ handling.
* companion, repeater and room_server: now with basic 'plumbing' to handle REQ_TYPE_GET_TELEMETRY_DATA (0x03).
* dependency: added CayenneLPP to libdeps
* all target.* modules now with a stub 'sensors' object.
2025-05-03 13:14:03 +10:00
Scott Powell
a87b5231cc
* RP2040 IdentityStore begin(), to ensure mkdir()
2025-04-22 15:26:04 +10:00
AeroXuk
4d9964ff98
Correct opens to use "w" filemode instead of "w+" filemode.
2025-04-21 21:49:41 +01:00
AeroXuk
99246e6b6f
Added Pi PIcoW support in the following modes:
...
- Companion Radio over USB Serial
- Repeater
- Room Server
- Terminal Chat
2025-04-21 21:17:03 +01:00
Scott Powell
9498d2e824
* ID hash 0x00 and 0xFF now reserved for future.
2025-04-06 12:34:09 +10:00
Scott Powell
c0cb57be5c
* refactor: rtc_clock now defined by variants/*/target modules
2025-03-27 21:28:06 +11:00
Scott Powell
2224bddcb5
* new ESPNOWRadio driver
...
* refactored the examples/*/main.cpp modules, moving radio specifics to variants/*/target modules
* new Generic_ESPNOW_* target envs
2025-03-27 19:34:16 +11:00
Scott Powell
321a9425da
* experiment: enabling forwarding in terminal chat
2025-03-26 03:57:36 +11:00
Scott Powell
d32e641225
* fix for double radio.begin(). RNG seed from pressing ENTER
2025-03-25 17:40:36 +11:00
Scott Powell
1220c69aa9
* wifi power max
2025-03-25 15:13:07 +11:00
Scott Powell
8355543366
* more experiments
2025-03-25 01:26:46 +11:00
Scott Powell
7bd7bfb14a
* ESP-NOW experiment with terminal-chat
2025-03-24 21:16:00 +11:00
Scott Powell
bfb4b1c496
* BIG refactor: 'board' and 'radio' objects now defined in 'target.h/.cpp'
...
* mesh::RTCClock class moved to MeshCore.h
2025-03-21 18:57:12 +11:00
ripplebiz
d15630660b
Merge pull request #114 from lincomatic/pr-llcc68
...
Add ProMicroLLCC68 builds
2025-03-18 13:45:03 +11:00
Scott Powell
fe4fdeb236
* redesigned TRACE packet structure
2025-03-17 17:56:12 +11:00
lincomatic
bdeec374ef
add ProMicroLLCC68 for Faketec w/ LLCC68
2025-03-16 17:48:52 -07:00
Scott Powell
9aa2edf9ba
Merge branch 'dev' into trace
...
# Conflicts:
# examples/companion_radio/main.cpp
# src/Dispatcher.cpp
2025-03-15 15:12:50 +11:00
oltaco
c8104563a0
Merge branch 'ripplebiz:main' into faketec-support
2025-03-13 16:22:02 +11:00
Scott Powell
b94fed4e4e
* companion: channel names
2025-03-11 17:58:12 +11:00
taco
8e793dc55e
Faketec board support, including build targets
2025-03-11 09:34:52 +11:00
Scott Powell
a259d27cfe
* trying setCRC(1)
2025-03-09 22:15:58 +11:00
Scott Powell
e534e1b529
* companion: FIRMWARE_VER_CODE now bumped to 3.
...
* companion: new RESP_CODE_CONTACT_MSG_RECV_V3, and _CHANNEL_MSG_RECV_V3. (now with packet SNR included)
2025-03-07 14:17:37 +11:00
Scott Powell
b03aac18c0
Merge branch 'dev' into trace
...
# Conflicts:
# src/Dispatcher.cpp
# src/Mesh.cpp
# src/helpers/BaseChatMesh.cpp
2025-03-07 12:14:26 +11:00
Alex Wolden
86389579eb
Merge remote-tracking branch 'origin/dev' into awolden/t3lora
2025-03-04 23:23:03 -08:00
Alex Wolden
d36da0ed8e
Refactor naming
2025-03-04 22:00:48 -08:00
Alex Wolden
e1022791e8
Add support for LilyGo T3 with SX1276 module
...
- Add custom partition table for fitting larger firmware
- Create LilyGoT3S3Board.h for board-specific functionality
- Update all example files to support the T3 board with SX1276
- Configure build environment for optimizing firmware size
- Set up the right pin configuration for SX1276 on LilyGo T3
2025-03-04 00:07:36 -08:00
Scott Powell
88959b6b03
* companion radio: support for TXT_TYPE_SIGNED_PLAIN
2025-03-02 13:57:50 +11:00
Scott Powell
1209d54d2e
* various changes for CLI support via companion radio
2025-02-27 12:51:00 +11:00
Scott Powell
37f4ceff85
* strncpy() refactor/fix
2025-02-22 19:41:24 +11:00
ripplebiz
72d44a17d4
Merge pull request #23 from fdlamotte/t1000e_code
...
T1000e code
2025-02-19 17:49:36 +11:00