mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-01 15:40:49 +00:00
Add 1 retransmission for intermediate hops when using NextHopRouter
This commit is contained in:
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user