Show last completed telemetry transmission age

This commit is contained in:
mikecarper committed 2026-10-23 15:12:42 -07:00
1 parent ea4b53ceee
commit 84cae8a774
8 files changed
+234 -4

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ static bool hasValidEncryptedPayloadLength(uint16_t payload_len, uint16_t clear_
return ((payload_len - overhead) % CIPHER_BLOCK_SIZE) == 0;
}
static bool isTelemetryHistoryPayload(const Packet* packet) {
bool Mesh::isTelemetryHistoryPayload(const Packet* packet) {
const uint8_t* data = packet->payload;
const uint16_t length = packet->payload_len;
if ((uint16_t)(length - 20U) > MAX_PACKET_PAYLOAD - 20U
+2
View File
@@ -219,6 +219,8 @@ class Mesh : public Dispatcher {
DispatcherAction forwardMultipartDirect(Packet* pkt, uint32_t delay_millis);
protected:
static bool isTelemetryHistoryPayload(const Packet* packet);
// Roles with lazily persisted state can veto an OTA reset until that state
// is durable. The OTA apply remains armed and is retried later.
virtual bool prepareForOtaReboot() { return true; }