Updates to S&F (this one doesn't work)

This commit is contained in:
Jm Casler
2021-11-21 14:43:47 -08:00
parent 4367f05b24
commit 834f2f4160
2 changed files with 67 additions and 33 deletions

View File

@@ -22,8 +22,12 @@ class StoreForwardPlugin : public SinglePortPlugin, private concurrency::OSThrea
uint32_t receivedRecord[50][2] = {{0}};
PacketHistoryStruct *packetHistory;
PacketHistoryStruct *packetHistoryTXQueue;
uint32_t packetHistoryCurrent = 0;
uint32_t packetTimeMax = 0;
public:
StoreForwardPlugin();
@@ -34,17 +38,17 @@ class StoreForwardPlugin : public SinglePortPlugin, private concurrency::OSThrea
void historyAdd(const MeshPacket &mp);
void historyReport();
void historySend(uint32_t msAgo, uint32_t to);
void populatePSRAM();
/**
* Send our payload into the mesh
*/
void sendPayload(NodeNum dest = NODENUM_BROADCAST, uint32_t packetHistory_index = 0);
void sendMessage(NodeNum dest, char *str);
virtual MeshPacket *allocReply();
virtual bool wantPortnum(PortNum p) { return true; };
private:
// Nothing here.
void populatePSRAM();
protected:
virtual int32_t runOnce();