This commit is contained in:
richonguzman
2025-03-10 03:02:48 -03:00
parent 1c07c2fb2b
commit 2e3cafd0f0
15 changed files with 20 additions and 7 deletions
+1
View File
@@ -6,6 +6,7 @@
#include "display.h"
#include "utils.h"
#ifdef HAS_A7670
#define TINY_GSM_MODEM_SIM7600 //The AT instruction of A7670 is compatible with SIM7600
#define TINY_GSM_RX_BUFFER 1024 // Set RX buffer to 1Kb
+3 -3
View File
@@ -26,13 +26,11 @@ ___________________________________________________________________*/
#include <WiFi.h>
#include <vector>
#include "configuration.h"
#include "battery_utils.h"
#include "aprs_is_utils.h"
#include "station_utils.h"
#include "battery_utils.h"
#include "board_pinout.h"
#include "syslog_utils.h"
#include "query_utils.h"
#include "power_utils.h"
#include "lora_utils.h"
#include "wifi_utils.h"
@@ -48,7 +46,8 @@ ___________________________________________________________________*/
#include "A7670_utils.h"
#endif
String versionDate = "2025.03.09";
String versionDate = "2025.03.10";
Configuration Config;
WiFiClient espClient;
#ifdef HAS_GPS
@@ -78,6 +77,7 @@ std::vector<ReceivedPacket> receivedPackets;
String firstLine, secondLine, thirdLine, fourthLine, fifthLine, sixthLine, seventhLine;
//#define STARTUP_DELAY 5 //min
void setup() {
Serial.begin(115200);
POWER_Utils::setup();
+1
View File
@@ -9,6 +9,7 @@
#include "display.h"
#include "utils.h"
extern Configuration Config;
extern WiFiClient espClient;
extern uint32_t lastScreenOn;
+1
View File
@@ -5,6 +5,7 @@
#include "power_utils.h"
#include "utils.h"
extern Configuration Config;
extern uint32_t lastBatteryCheck;
+1 -1
View File
@@ -2,7 +2,6 @@
#include "configuration.h"
#include "station_utils.h"
#include "aprs_is_utils.h"
#include "query_utils.h"
#include "digi_utils.h"
#include "wifi_utils.h"
#include "lora_utils.h"
@@ -10,6 +9,7 @@
#include "display.h"
#include "utils.h"
extern Configuration Config;
extern uint32_t lastScreenOn;
extern String iGateBeaconPacket;
+1
View File
@@ -1,6 +1,7 @@
#include <Arduino.h>
#include "kiss_protocol.h"
bool validateTNC2Frame(const String& tnc2FormattedFrame) {
return (tnc2FormattedFrame.indexOf(':') != -1) && (tnc2FormattedFrame.indexOf('>') != -1);
}
+1
View File
@@ -9,6 +9,7 @@
#include "display.h"
#include "utils.h"
extern Configuration Config;
extern uint32_t lastRxTime;
+1
View File
@@ -5,6 +5,7 @@
#include "ota_utils.h"
#include "display.h"
extern Configuration Config;
extern uint32_t lastScreenOn;
extern bool isUpdatingOTA;
+5 -2
View File
@@ -71,17 +71,20 @@ namespace QUERY_Utils {
} else if (STATION_Utils::isManager(station) && (!queryFromAPRSIS || !Config.remoteManagement.rfOnly)) {
if (queryQuestion.indexOf("?TX=ON") == 0) {
Config.loramodule.txActive = true;
//
Serial.println("TX=ON");
// send answer?
answer = "TX=ON";
// change status?
} else if (queryQuestion.indexOf("?TX=OFF") == 0) {
Config.loramodule.txActive = false;
//
Serial.println("TX=OFF");
// send answer?
answer = "TX=OFF";
// change status?
} else if (queryQuestion.indexOf("?TX=?") == 0) {
answer = (Config.loramodule.txActive) ? "TX=ON" : "TX=OFF";
} else if (queryQuestion.indexOf("?COMMIT") == 0) { // when, after changing state????
answer = "New Config Saved";
Config.writeFile();
}
}
+1
View File
@@ -7,6 +7,7 @@
#include "utils.h"
#include <vector>
extern Configuration Config;
extern uint32_t lastRxTime;
extern String fourthLine;
+1
View File
@@ -4,6 +4,7 @@
#include "syslog_utils.h"
#include "gps_utils.h"
extern Configuration Config;
WiFiUDP udpClient;
+1
View File
@@ -5,6 +5,7 @@
#include "station_utils.h"
#include "utils.h"
extern Configuration Config;
#define MAX_CLIENTS 4
+1
View File
@@ -5,6 +5,7 @@
#include "display.h"
#include "utils.h"
extern Configuration Config;
extern uint32_t lastBeaconTx;
extern std::vector<ReceivedPacket> receivedPackets;
+1
View File
@@ -5,6 +5,7 @@
#include "display.h"
#include "utils.h"
extern Configuration Config;
extern uint8_t myWiFiAPIndex;
-1
View File
@@ -31,7 +31,6 @@ Adafruit_Si7021 sensor = Adafruit_Si7021();
#endif
namespace WX_Utils {
void getWxModuleAddres() {