diff --git a/RX_FSK/RX_FSK.ino b/RX_FSK/RX_FSK.ino index 4ae1882..2ba2fc0 100644 --- a/RX_FSK/RX_FSK.ino +++ b/RX_FSK/RX_FSK.ino @@ -26,8 +26,11 @@ int e; AsyncWebServer server(80); -const char * udpAddress = "192.168.42.20"; -const int udpPort = 9002; +#define LOCALUDPPORT 9002 + +// moved to sonde.config +//const char * udpAddress = "192.168.42.20"; +//const int udpPort = 9002; boolean connected = false; WiFiUDP udp; @@ -278,13 +281,13 @@ struct st_configitems config_list[N_CONFIG] = { {"Call", 8, sonde.config.call}, {"Passcode", 8, sonde.config.passcode}, {"---", -1, NULL}, - {"AXUDP active", -3, sonde.config.udpfeed.active}, + {"AXUDP active", -3, &sonde.config.udpfeed.active}, {"AXUDP Host", 63, sonde.config.udpfeed.host}, {"AXUDP Port", 0, &sonde.config.udpfeed.port}, {"DFM ID Format", -2, &sonde.config.udpfeed.idformat}, {"Rate limit", 0, &sonde.config.udpfeed.highrate}, {"---", -1, NULL}, - {"APRS TCP active", -3, sonde.config.tcpfeed.active}, + {"APRS TCP active", -3, &sonde.config.tcpfeed.active}, {"ARPS TCP Host", 63, sonde.config.tcpfeed.host}, {"APRS TCP Port", 0, &sonde.config.tcpfeed.port}, {"DFM ID Format", -2, &sonde.config.tcpfeed.idformat}, @@ -314,7 +317,7 @@ void addConfigSeparatorEntry(char *ptr) { const char *createConfigForm() { char *ptr = message; char tmp[4]; - strcpy(ptr,"