2025-07-15 16:28:23 -04:00
|
|
|
/* Copyright (C) 2025 Ricardo Guzman - CA2RXU
|
|
|
|
|
*
|
|
|
|
|
* This file is part of LoRa APRS iGate.
|
|
|
|
|
*
|
|
|
|
|
* LoRa APRS iGate is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* LoRa APRS iGate is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with LoRa APRS iGate. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
2023-06-06 13:46:49 -04:00
|
|
|
#ifndef STATION_UTILS_H_
|
|
|
|
|
#define STATION_UTILS_H_
|
|
|
|
|
|
2024-09-10 14:06:10 -03:00
|
|
|
|
2023-06-06 13:46:49 -04:00
|
|
|
#include <Arduino.h>
|
|
|
|
|
|
2024-02-25 10:53:16 -03:00
|
|
|
|
2024-09-10 14:06:10 -03:00
|
|
|
struct LastHeardStation {
|
|
|
|
|
uint32_t lastHeardTime;
|
|
|
|
|
String station;
|
|
|
|
|
};
|
|
|
|
|
|
2023-06-06 13:46:49 -04:00
|
|
|
namespace STATION_Utils {
|
|
|
|
|
|
2025-04-24 09:50:58 -04:00
|
|
|
void loadBlacklistAndManagers();
|
2025-03-09 10:23:34 -03:00
|
|
|
bool isBlacklisted(const String& callsign);
|
|
|
|
|
bool isManager(const String& callsign);
|
2025-02-25 13:54:36 -03:00
|
|
|
bool checkObjectTime(const String& packet);
|
2024-01-02 22:12:10 -03:00
|
|
|
void deleteNotHeard();
|
2024-05-15 16:41:07 -04:00
|
|
|
void updateLastHeard(const String& station);
|
|
|
|
|
bool wasHeard(const String& station);
|
2024-05-13 20:29:08 -04:00
|
|
|
void clean25SegBuffer();
|
2024-05-15 16:41:07 -04:00
|
|
|
bool check25SegBuffer(const String& station, const String& textMessage);
|
2025-04-24 10:36:08 -04:00
|
|
|
void processOutputPacketBufferUltraEcoMode();
|
2024-04-20 09:27:20 -04:00
|
|
|
void processOutputPacketBuffer();
|
2025-10-11 18:27:06 -03:00
|
|
|
void addToOutputPacketBuffer(const String& packet, bool flag = false);
|
2023-06-06 13:46:49 -04:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|