2023-06-04 20:54:11 +02:00
|
|
|
#include <WiFi.h>
|
|
|
|
|
#include <Arduino.h>
|
2023-06-06 17:21:59 +02:00
|
|
|
//#include <igate_config.h>
|
|
|
|
|
#include "configuration.h"
|
2023-06-04 20:18:30 +02:00
|
|
|
#include "utils.h"
|
|
|
|
|
|
2023-06-04 20:54:11 +02:00
|
|
|
extern WiFiClient espClient;
|
|
|
|
|
extern Configuration Config;
|
|
|
|
|
extern bool statusAfterBoot;
|
2023-06-04 20:18:30 +02:00
|
|
|
|
2023-06-04 20:54:11 +02:00
|
|
|
namespace utils {
|
2023-06-04 20:18:30 +02:00
|
|
|
|
2023-06-04 20:54:11 +02:00
|
|
|
void processStatus() {
|
|
|
|
|
delay(1000);
|
|
|
|
|
String startupStatus = Config.callsign + ">APLR10,qAC:>" + Config.defaultStatus;
|
|
|
|
|
espClient.write((startupStatus + "\n").c_str());
|
|
|
|
|
statusAfterBoot = false;
|
2023-06-04 20:18:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|