Skip to content

Commit 9bbf0c8

Browse files
committed
TcpServer: Rename settings.tcpUdpOverWiFiStation to tcpOverWiFiStation
1 parent a40d155 commit 9bbf0c8

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

Firmware/RTK_Everywhere/AP-Config/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1678,9 +1678,9 @@
16781678
<p id="enableUdpServerError" class="inlineError"></p>
16791679
</div>
16801680

1681-
<div id="tcpUdpWiFiTypeDropdown" class="mt-3">
1682-
<label for="tcpUdpOverWiFiStation">TCP/UDP Server Connection: </label>
1683-
<select name="tcpUdpWiFiType" id="tcpUdpOverWiFiStation" class="form-dropdown">
1681+
<div id="tcpWiFiTypeDropdown" class="mt-3">
1682+
<label for="tcpOverWiFiStation">TCP Server Connection: </label>
1683+
<select name="tcpWiFiType" id="tcpOverWiFiStation" class="form-dropdown">
16841684
<option value="1">WiFi</option>
16851685
<option value="0">AP</option>
16861686
</select>

Firmware/RTK_Everywhere/Network.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ void menuTcpUdp()
226226
if (settings.mdnsEnable)
227227
systemPrintf("n) MDNS host name: %s\r\n", settings.mdnsHostName);
228228

229-
systemPrint("a) Broadcast TCP/UDP Server packets over local WiFi or act as Access Point: ");
230-
systemPrintf("%s\r\n", settings.tcpUdpOverWiFiStation ? "WiFi" : "AP");
229+
systemPrint("t) Broadcast TCP/UDP Server packets over local WiFi or act as Access Point: ");
230+
systemPrintf("%s\r\n", settings.tcpOverWiFiStation ? "WiFi" : "AP");
231231

232232
systemPrint("u) Broadcast UDP Server packets over local WiFi or act as Access Point: ");
233233
systemPrintf("%s\r\n", settings.udpOverWiFiStation ? "WiFi" : "AP");
@@ -326,9 +326,9 @@ void menuTcpUdp()
326326
getUserInputString((char *)&settings.mdnsHostName, sizeof(settings.mdnsHostName));
327327
}
328328

329-
else if (incoming == 'a')
329+
else if (incoming == 't')
330330
{
331-
settings.tcpUdpOverWiFiStation ^= 1;
331+
settings.tcpOverWiFiStation ^= 1;
332332
wifiUpdateSettings();
333333
}
334334

Firmware/RTK_Everywhere/TcpServer.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ void tcpServerUpdate()
698698
{
699699
if (settings.debugTcpServer && (!inMainMenu))
700700
systemPrintf("%s start/r/n", tcpServerName);
701-
if (settings.tcpUdpOverWiFiStation == true)
701+
if (settings.tcpOverWiFiStation == true)
702702
networkConsumerAdd(NETCONSUMER_TCP_SERVER, NETWORK_ANY, __FILE__, __LINE__);
703703
else
704704
networkSoftApConsumerAdd(NETCONSUMER_TCP_SERVER, __FILE__, __LINE__);

Firmware/RTK_Everywhere/menuCommands.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1968,10 +1968,10 @@ void createSettingsString(char *newSettings)
19681968
else
19691969
stringRecord(newSettings, "wifiConfigOverAP", 0); // 1 = AP mode, 0 = WiFi
19701970

1971-
if (settings.tcpUdpOverWiFiStation == true)
1972-
stringRecord(newSettings, "tcpUdpOverWiFiStation", 1); // 1 = WiFi mode, 0 = AP
1971+
if (settings.tcpOverWiFiStation == true)
1972+
stringRecord(newSettings, "tcpOverWiFiStation", 1); // 1 = WiFi mode, 0 = AP
19731973
else
1974-
stringRecord(newSettings, "tcpUdpOverWiFiStation", 0); // 1 = WiFi mode, 0 = AP
1974+
stringRecord(newSettings, "tcpOverWiFiStation", 0); // 1 = WiFi mode, 0 = AP
19751975

19761976
if (settings.udpOverWiFiStation == true)
19771977
stringRecord(newSettings, "udpOverWiFiStation", 1); // 1 = WiFi mode, 0 = AP

Firmware/RTK_Everywhere/settings.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ struct Settings
938938
bool debugTcpServer = false;
939939
bool enableTcpServer = false;
940940
uint16_t tcpServerPort = 2948; // TCP server port, 2948 is GPS Daemon: http://tcp-udp-ports.com/port-2948.htm
941-
bool tcpUdpOverWiFiStation = true; // Controls if TCP/UDP settings should use Station or AP
941+
bool tcpOverWiFiStation = true; // Should TCP server use Station (true) or AP (false)
942942
bool udpOverWiFiStation = true; // Should UDP server use Station (true) or AP (false)
943943

944944
// Time Zone - Default to UTC
@@ -1586,7 +1586,7 @@ const RTK_Settings_Entry rtkSettingsEntries[] =
15861586
{ 0, 0, 0, 1, 1, 1, 1, 1, 1, _bool, 0, & settings.debugTcpServer, "debugTcpServer", },
15871587
{ 1, 1, 0, 1, 1, 1, 1, 1, 1, _bool, 0, & settings.enableTcpServer, "enableTcpServer", },
15881588
{ 1, 1, 0, 1, 1, 1, 1, 1, 1, _uint16_t, 0, & settings.tcpServerPort, "tcpServerPort", },
1589-
{ 1, 1, 0, 1, 1, 1, 1, 1, 1, _bool, 0, & settings.tcpUdpOverWiFiStation, "tcpUdpOverWiFiStation", },
1589+
{ 1, 1, 0, 1, 1, 1, 1, 1, 1, _bool, 0, & settings.tcpOverWiFiStation, "tcpOverWiFiStation", },
15901590

15911591
// Time Zone
15921592
{ 0, 1, 0, 1, 1, 1, 1, 1, 1, _int8_t, 0, & settings.timeZoneHours, "timeZoneHours", },

0 commit comments

Comments
 (0)