Fix OTA resume, CLI identity, radio persistence, and network sessions

Distinguish OTA read failures from missing blocks and select unique raw-flash checkpoints by MID and target. Keep deferred CLI requests and replies bound to immutable command identity and full authenticated keys.

Gate radio mutations on their exact reply delivery, recover coding-rate restoration, and roll back failed Companion preference writes. Preserve accepted low duty cycles across reboot.

Retain partial network writes, cancel displaced client operations, and reject malformed or stalled framed input. Add regression and CI coverage, and size-optimize the RAK4631 Ethernet build without dropping features.
This commit is contained in:
mikecarper committed 2026-09-15 14:32:40 -07:00
1 parent 931cb4928f
commit a88ced23b6
64 files changed
+3504 -369

No files matched your search

+7 -2
View File
@@ -36,7 +36,8 @@ public:
}
bool remember(const uint8_t* sender_pub_key, uint32_t request_timestamp,
uint32_t command_fingerprint, const char* response) {
uint32_t command_fingerprint, const char* response,
bool authoritative_reply = false) {
if (sender_pub_key == NULL || response == NULL) return false;
Entry* target = NULL;
@@ -66,18 +67,21 @@ public:
memcpy(target->response, response, response_len);
target->response[response_len] = 0;
target->valid = true;
target->authoritative_reply = authoritative_reply;
return true;
}
bool lookup(const uint8_t* sender_pub_key, uint32_t request_timestamp,
uint32_t command_fingerprint,
const char** response = NULL) const {
const char** response = NULL, bool* authoritative_reply = NULL) const {
if (authoritative_reply) *authoritative_reply = false;
for (size_t i = 0; i < ENTRY_COUNT; ++i) {
if (!entryMatches(entries_[i], sender_pub_key, request_timestamp,
command_fingerprint)) {
continue;
}
if (response != NULL) *response = entries_[i].response;
if (authoritative_reply) *authoritative_reply = entries_[i].authoritative_reply;
return true;
}
return false;
@@ -106,6 +110,7 @@ public:
private:
struct Entry {
bool valid;
bool authoritative_reply;
uint8_t sender_pub_key[PUB_KEY_SIZE];
uint32_t request_timestamp;
uint32_t command_fingerprint;