Add 1 retransmission for intermediate hops when using NextHopRouter

This commit is contained in:
GUVWAF
2024-08-10 20:46:27 +02:00
parent 913268b132
commit 2e303a33be
8 changed files with 181 additions and 181 deletions

View File

@@ -1,7 +1,6 @@
#pragma once
#include "NextHopRouter.h"
#include <unordered_map>
/**
* This is a mixin that extends Router with the ability to do (one hop only) reliable message sends.
@@ -32,4 +31,6 @@ class ReliableRouter : public NextHopRouter
* We hook this method so we can see packets before FloodingRouter says they should be discarded
*/
virtual bool shouldFilterReceived(const meshtastic_MeshPacket *p) override;
constexpr static uint8_t NUM_RETRANSMISSIONS = 3;
};