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-07 17:25:50 -04:00
|
|
|
#ifndef DIGI_UTILS_H_
|
|
|
|
|
#define DIGI_UTILS_H_
|
|
|
|
|
|
|
|
|
|
#include <Arduino.h>
|
|
|
|
|
|
2024-02-25 10:53:16 -03:00
|
|
|
|
2023-06-07 17:25:50 -04:00
|
|
|
namespace DIGI_Utils {
|
|
|
|
|
|
2024-10-05 20:21:36 -03:00
|
|
|
String buildPacket(const String& path, const String& packet, bool thirdParty, bool crossFreq);
|
2024-11-06 10:07:44 -03:00
|
|
|
String generateDigipeatedPacket(const String& packet, bool thirdParty);
|
2024-05-30 20:04:46 -04:00
|
|
|
void processLoRaPacket(const String& packet);
|
2024-10-08 01:03:58 -03:00
|
|
|
void checkEcoMode();
|
2023-06-07 17:25:50 -04:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|