Compare commits

..

2 Commits

Author SHA1 Message Date
richonguzman 5c5c940d71 mDNS added 2025-09-08 19:00:23 -03:00
richonguzman 57decd2ac7 gpsAmbiguity fix 2025-09-03 18:00:15 -04:00
2 changed files with 16 additions and 1 deletions
+3 -1
View File
@@ -18,7 +18,9 @@
"sendViaAPRSIS": false,
"sendViaRF": false,
"statusActive": false,
"statusPacket": ""
"statusPacket": "",
"gpsActive": false,
"gpsAmbiguity": false
},
"aprs_is": {
"active": false,
+13
View File
@@ -17,10 +17,12 @@
*/
#include <WiFi.h>
#include "ESPmDNS.h"
#include "configuration.h"
#include "station_utils.h"
#include "kiss_protocol.h"
#include "kiss_utils.h"
#include "tnc_utils.h"
#include "utils.h"
@@ -45,6 +47,17 @@ namespace TNC_Utils {
if (Config.tnc.enableServer && Config.digi.ecoMode == 0) {
tncServer.stop();
tncServer.begin();
String host = "igate-" + Config.callsign;
if (!MDNS.begin(host.c_str())) {
Serial.println("Error Starting mDNS");
tncServer.stop();
return;
}
if (!MDNS.addService("tnc", "tcp", TNC_PORT)) {
Serial.println("Error: Could not add mDNS service");
}
Serial.println("TNC server started successfully");
Serial.println("mDNS Host: " + host + ".local");
}
}