LoRa_APRS_iGate/include/utils.h

34 lines
739 B
C
Raw Normal View History

2023-06-04 20:18:30 +02:00
#ifndef UTILS_H_
#define UTILS_H_
#include <Arduino.h>
2024-11-06 16:47:42 +01:00
2024-04-13 18:20:10 +02:00
class ReceivedPacket {
public:
2024-10-14 16:44:22 +02:00
String rxTime;
2024-04-13 18:20:10 +02:00
String packet;
int RSSI;
2024-05-31 02:04:46 +02:00
float SNR;
2024-04-13 18:20:10 +02:00
};
2024-02-25 14:53:16 +01:00
2023-06-12 07:31:18 +02:00
namespace Utils {
2023-06-04 20:18:30 +02:00
2024-05-31 02:04:46 +02:00
void processStatus();
2024-06-08 20:12:20 +02:00
String getLocalIP();
2024-05-31 02:04:46 +02:00
void setupDisplay();
void activeStations();
void checkBeaconInterval();
void checkDisplayInterval();
void validateFreqs();
2024-06-06 05:49:16 +02:00
void typeOfPacket(const String& packet, const uint8_t packetType);
2024-05-31 02:04:46 +02:00
void print(const String& text);
void println(const String& text);
void checkRebootMode();
void checkRebootTime();
void checkSleepByLowBatteryVoltage(uint8_t mode);
2024-06-07 23:29:55 +02:00
bool checkValidCallsign(const String& callsign);
2023-06-04 20:18:30 +02:00
}
2023-06-06 16:43:04 +02:00
2023-06-04 20:18:30 +02:00
#endif