Skip to content
Open
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
3e84e14
Implements Resource Trie For RBR
matt001k Mar 20, 2026
977be1c
Update struct to match new wildcard scheme
matt001k Mar 27, 2026
ccd75fe
Updates how matching is performed
matt001k Mar 27, 2026
3e00627
Update tests, need cleanup
matt001k Mar 27, 2026
98a61d8
Remove match linked list, not needed
matt001k Apr 1, 2026
28d4d49
Update tests and logic, add remove ability
matt001k Apr 1, 2026
225f6a3
Updates to fix bugs found in unit testing
matt001k Apr 2, 2026
99c4b00
Getting so close!
matt001k Apr 3, 2026
57b95b8
We have accounted for all matches!
matt001k Apr 3, 2026
2aae84b
Update wildcard search method
matt001k Apr 6, 2026
0a5173a
Code clean up
matt001k Apr 6, 2026
a4cccf2
Get all tests building!
matt001k Apr 8, 2026
8c0ccbf
Update resource_trie_test.cpp for wildcard removal complex
matt001k Apr 8, 2026
9dfb929
Separate wildcard match entries from concrete interests
matt001k Apr 13, 2026
d941665
Add test for deep trie
matt001k Apr 14, 2026
828dd14
Address potential memory errors
matt001k Apr 15, 2026
bc14aa0
Track memory usage, fix bugs and prevent memory leaks
matt001k Apr 20, 2026
0e2ef8c
Allow compression along the whole trie when removing nodes
matt001k Apr 20, 2026
842b8dc
Update comments in respect to behaviour of the code
matt001k Apr 22, 2026
b53a5be
Add more tests!
matt001k Apr 22, 2026
d6ea0dc
Add purging function to clean up memory
matt001k Apr 22, 2026
ff3a1f1
Fix Tests
matt001k Apr 22, 2026
afcf60c
Add doxygen comments and clean up tests
matt001k Apr 23, 2026
2d85519
Update topic name and comment for test
matt001k Apr 28, 2026
b186d9d
Change directory to common, add exact match API, update unit tests, add
matt001k Jul 31, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions common/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ typedef struct {
#define ms_to_s(x) (x / 1000)
#define bm_min(a, b) (((a) < (b)) ? (a) : (b))
#define bm_max(a, b) (((a) > (b)) ? (a) : (b))
#define uint_safe_decrement(x) (x ? x - 1 : 0)

uint32_t time_remaining(uint32_t start, uint32_t current, uint32_t timeout);
uint32_t utc_from_date_time(uint16_t year, uint8_t month, uint8_t day,
Expand Down
1 change: 1 addition & 0 deletions middleware/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ set(SOURCES
middleware.c
power_info_service.c
pubsub.c
resource_trie.c
sys_info_service.c
)

Expand Down
2 changes: 2 additions & 0 deletions middleware/pubsub.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ extern "C" {

#define BM_TOPIC_MAX_LEN (255)

typedef uint8_t BmTopicLength;

// Add data structures published through pub sub must have this header.
typedef struct {
uint8_t type; // Type of data.
Expand Down
Loading
Loading