LoRa_APRS_iGate/include/aprs_is_utils.h

45 lines
1.4 KiB
C
Raw Permalink Normal View History

2025-07-15 22:28:23 +02: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 17:30:32 +02:00
#ifndef APRS_IS_UTILS_H_
#define APRS_IS_UTILS_H_
#include <Arduino.h>
2024-01-19 15:33:58 +01:00
2023-06-06 17:30:32 +02:00
namespace APRS_IS_Utils {
2024-05-31 02:04:46 +02:00
void upload(const String& line);
void connect();
2025-05-18 14:44:46 +02:00
2024-05-31 02:04:46 +02:00
void checkStatus();
2024-06-20 20:06:14 +02:00
String checkForStartingBytes(const String& packet);
2025-05-18 14:44:46 +02:00
2024-05-31 02:04:46 +02:00
String buildPacketToUpload(const String& packet);
2024-06-28 22:05:04 +02:00
bool processReceivedLoRaMessage(const String& sender, const String& packet, bool thirdParty);
2024-05-31 02:04:46 +02:00
void processLoRaPacket(const String& packet);
2024-06-24 16:32:58 +02:00
String buildPacketToTx(const String& aprsisPacket, uint8_t packetType);
2024-05-31 02:04:46 +02:00
void processAPRSISPacket(const String& packet);
void listenAPRSIS();
2023-06-06 17:30:32 +02:00
2024-12-06 16:03:37 +01:00
void firstConnection();
2023-06-06 17:30:32 +02:00
}
#endif