16 Commits
Author SHA1 Message Date
DeFiDude 290a1336eb Disable bz2 on Resource transfers — too heavy for MCU targets
- BZ2.cpp: no-op shim, keeps RNS::Compression symbols
- Stub the 7 vendored bzip2 1.0.8 .c files (~4500 lines removed)
- OutboundResource::init always sends uncompressed; default flipped
- InboundResource drops compressed payloads with a WARNING (no decode)
- library.json: defensive build.srcFilter excluding bzip2 sources

Companion fix lives in firmware repos: announce app_data must
advertise an empty supported_functionality list so Python LXMF
disables auto_compress for our destinations.
2026-04-23 17:38:07 -06:00
Chad Attermann 4d6f0b9de2 Added dual-class PSRAM/TLSF allocator system and refactored memory management
Introduces a flexible two-class allocator architecture (RNS_DEFAULT_ALLOCATOR and RNS_CONTAINER_ALLOCATOR) supporting heap, PSRAM, and TLSF pool variants for fine-grained control over embedded memory layout.

- New Memory.h/cpp with ContainerAllocator<T>, heap/PSRAM/pool allocator types, and heap stats reporting
- IdentityTable and PathTable now use ContainerAllocator
- Replaced RNS_USE_TLSF/RNS_USE_ALLOCATOR/RNS_USE_PSRAM flags with per-class allocator flags (RNS_DEFAULT_ALLOCATOR, RNS_CONTAINER_ALLOCATOR)
- Added ESP32 PSRAM allocator support (RNS_PSRAM_ALLOCATOR, RNS_PSRAM_POOL_ALLOCATOR)
- Added Transport::get_path()/remove_path() helpers
- Added loop callback (set_loop_callback) to enable more responsive app during long operations (like clean_cache)
- Aded guard against re-entrancy to clean_cache()
- Added callback option to list_directory() to avoid heap allocation
- Added OOM auto-restart (ESP.restart/NVIC_SystemReset) in Interface send/receive and Reticulum loop.
- Renamed setLogCallback to set_log_callback
- Made Link/Identity static members private
- Added native14 env to CI and platformio.ini
- Bumped version to 0.2.10
2026-03-06 16:43:04 -07:00
Chad Attermann 49ccbc2827 Major bug fixes and performance enhancements
- Fixed bug in path table loading from flash storage wherein the raw
(packed) announce packet associated with each path entry was not being
unpacked prior to use.
- Fixed bug in path table entry announce packet loading where critical
changes to the announce packet (like hops increment) was being
overwriteen each time packet was re-loaded from cache.
- Optimized path table entries to lazy-load both announce packet and
receive interface so that memory is consumed by these structures until
if/when the path is actually used.
- Updated several global timers and sizes to match new RNS 1.x values.
- Bumped version to 0.2.9
2026-03-03 17:53:06 -07:00
Chad Attermann a968fdfc64 Bumped version to 0.2.8 2026-03-01 18:29:47 -07:00
Chad Attermann 9289da1a19 Bump to version 0.2.7. 2026-03-01 12:45:35 -07:00
Chad Attermann 086aac87b5 Bumped version to 0.2.6 2026-02-27 13:25:40 -07:00
Chad Attermann 20a7022241 Bumped version to 0.2.5 2026-02-26 11:38:48 -07:00
Chad Attermann 3c4978f294 WIP: Fixes for link validation and announce retries
Fix for link validation failure when poackets contain new MTU in payload
from RNS 1.0 (courtesy of @jlpoolen).
Optimization of announce re-broadcasts from RNS 1.0.
2026-02-15 09:59:25 -07:00
Chad Attermann cddc86e8c0 WIP: Added support for RNS packet context_flag
Added support for new `context_flag` in RNS packet header that is used
to indicate the use of ratchets.
Note that ratchet support is still missing from the implementation, but
this fix enables received ratchets to be able to handled gracefully.
2026-02-13 22:39:14 -07:00
Chad Attermann 838cede2e1 Incremented library version. 2026-02-09 13:58:25 -07:00
Chad Attermann 0004ca1717 Added build support for LILYGO T-Beam SUPREME 2026-01-21 13:53:37 -07:00
Chad Attermann c3edde10e9 WIP: Progress toward Link support with example app 2025-08-23 14:12:13 -06:00
Chad Attermann 73795b4286 WIP: Includes support for nRF52 TRNG 2024-06-06 12:55:53 -06:00
Chad Attermann 1b1beab4fa WIP: Work toward removing platform-specifics
Moved LoRa and UDP test code into `examples` folder.
Moved `main.cpp` test app to `examples` folder.
Removed platform-specific filesystem code and replaced with an interface
to be implemeneted by the consumer.
2024-05-26 17:28:51 -06:00
Chad Attermann a6ffe53585 Updates related to repo name change. 2024-02-20 10:23:51 -07:00
attermann f9a679ffc2 WIP: Initial implementation of persistence
Persistence implemented with the help of the ArduinoJson library using
MessagePack format.
2023-12-05 11:06:49 -07:00