Files
firmware/src/mesh
Erayd 9a8aeb25ab Add a general-purpose packet cache (#8341)
* Add general-purpose packet cache

This commit adds a caching system that will save packet data in a much
more compact form than the regular MeshPacket protobuf. It cannot be
worked with directly to the same degree (although the packet header is
available), but consumes *much* less memory, and as a result can be used
to temporarily store large numbers of packets.

Cached packets can be retrieved either by their (from, id) tuple, or by
their hash.

This cache is a pre-requisite for the upcoming packet replay feature.

* Remove debug initialiser

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix ordering

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Add missing size assignment

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Add comments for hash & bucket macros

* Make it clear that this field stores a map of the original data

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2025-10-14 19:22:45 -05:00
..
2025-07-20 23:13:50 +02:00
2025-10-12 05:34:00 -05:00
2025-10-07 06:00:09 -05:00
2025-07-05 12:56:29 -05:00
2024-08-13 18:43:19 -05:00
2025-09-11 18:57:30 -05:00
2025-08-29 12:09:22 -05:00
2025-03-01 06:18:33 -06:00
2022-01-24 17:24:40 +00:00
2023-01-21 21:23:24 +01:00
2024-11-04 19:15:59 -06:00
2025-10-01 15:31:53 -05:00
2025-10-01 15:31:53 -05:00
2025-10-01 15:31:53 -05:00
2025-09-19 08:37:58 -05:00