2023-06-06 19:46:49 +02:00
|
|
|
#ifndef STATION_UTILS_H_
|
|
|
|
|
#define STATION_UTILS_H_
|
|
|
|
|
|
2024-09-10 19:06:10 +02:00
|
|
|
|
2023-06-06 19:46:49 +02:00
|
|
|
#include <Arduino.h>
|
|
|
|
|
|
2024-02-25 14:53:16 +01:00
|
|
|
|
2024-09-10 19:06:10 +02:00
|
|
|
struct Packet25SegBuffer {
|
|
|
|
|
uint32_t receivedTime;
|
|
|
|
|
String station;
|
|
|
|
|
String payload;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct LastHeardStation {
|
|
|
|
|
uint32_t lastHeardTime;
|
|
|
|
|
String station;
|
|
|
|
|
};
|
|
|
|
|
|
2023-06-06 19:46:49 +02:00
|
|
|
namespace STATION_Utils {
|
|
|
|
|
|
2025-04-24 15:50:58 +02:00
|
|
|
void loadBlacklistAndManagers();
|
2025-03-09 14:23:34 +01:00
|
|
|
bool isBlacklisted(const String& callsign);
|
|
|
|
|
bool isManager(const String& callsign);
|
2025-02-25 17:54:36 +01:00
|
|
|
bool checkObjectTime(const String& packet);
|
2024-01-03 02:12:10 +01:00
|
|
|
void deleteNotHeard();
|
2024-05-15 22:41:07 +02:00
|
|
|
void updateLastHeard(const String& station);
|
|
|
|
|
bool wasHeard(const String& station);
|
2024-05-14 02:29:08 +02:00
|
|
|
void clean25SegBuffer();
|
2024-05-15 22:41:07 +02:00
|
|
|
bool check25SegBuffer(const String& station, const String& textMessage);
|
2025-04-24 16:36:08 +02:00
|
|
|
void processOutputPacketBufferUltraEcoMode();
|
2024-04-20 15:27:20 +02:00
|
|
|
void processOutputPacketBuffer();
|
2024-05-15 22:41:07 +02:00
|
|
|
void addToOutputPacketBuffer(const String& packet);
|
2023-06-06 19:46:49 +02:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|