mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-07-18 23:53:24 +02:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5c5c940d71 |
@@ -17,10 +17,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <WiFi.h>
|
#include <WiFi.h>
|
||||||
|
#include "ESPmDNS.h"
|
||||||
#include "configuration.h"
|
#include "configuration.h"
|
||||||
#include "station_utils.h"
|
#include "station_utils.h"
|
||||||
#include "kiss_protocol.h"
|
#include "kiss_protocol.h"
|
||||||
#include "kiss_utils.h"
|
#include "kiss_utils.h"
|
||||||
|
#include "tnc_utils.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
|
|
||||||
@@ -45,6 +47,17 @@ namespace TNC_Utils {
|
|||||||
if (Config.tnc.enableServer && Config.digi.ecoMode == 0) {
|
if (Config.tnc.enableServer && Config.digi.ecoMode == 0) {
|
||||||
tncServer.stop();
|
tncServer.stop();
|
||||||
tncServer.begin();
|
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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user