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