Skip to content

Commit c505ef7

Browse files
committed
Add WiFi RSSI to System menu if connected
1 parent bd320d9 commit c505ef7

File tree

5 files changed

+9
-15
lines changed

5 files changed

+9
-15
lines changed

Firmware/RTK_Surveyor/NtripClient.ino

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -452,12 +452,6 @@ void ntripClientUpdate()
452452
}
453453
}
454454

455-
if (millis() - lastWifiRSSIUpdate > 5000)
456-
{
457-
lastWifiRSSIUpdate = millis();
458-
Serial.printf("NTRIP WiFi RSSI: %d\n\r", WiFi.RSSI());
459-
}
460-
461455
break;
462456
}
463457
#endif //COMPILE_WIFI

Firmware/RTK_Surveyor/NtripServer.ino

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -583,11 +583,6 @@ void ntripServerUpdate()
583583
else
584584
cyclePositionLEDs();
585585

586-
if (millis() - lastWifiRSSIUpdate > 5000)
587-
{
588-
lastWifiRSSIUpdate = millis();
589-
Serial.printf("NTRIP WiFi RSSI: %d\n\r", WiFi.RSSI());
590-
}
591586
break;
592587
}
593588
#endif //COMPILE_WIFI

Firmware/RTK_Surveyor/RTK_Surveyor.ino

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,6 @@ unsigned long rtcWaitTime = 0; //At poweron, we give the RTC a few seconds to up
455455
TaskHandle_t idleTaskHandle[MAX_CPU_CORES];
456456
uint32_t max_idle_count = MAX_IDLE_TIME_COUNT;
457457

458-
unsigned long lastWifiRSSIUpdate = 0; //Print RSSI when connected every few seconds
459-
460458
bool firstRadioSpotBlink = false; //Controls when the shared icon space is toggled
461459
unsigned long firstRadioSpotTimer = 0;
462460
bool secondRadioSpotBlink = false; //Controls when the shared icon space is toggled

Firmware/RTK_Surveyor/WiFi.ino

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ static uint32_t lastWifiState = 0;
7070

7171
void wifiDisplayIpAddress()
7272
{
73-
Serial.print("Wi-Fi IP address: ");
74-
Serial.println(WiFi.localIP());
73+
Serial.print("WiFi IP address: ");
74+
Serial.print(WiFi.localIP());
75+
Serial.printf(" RSSI: %d\n\r", WiFi.RSSI());
76+
7577
wifiTimer = millis();
7678
}
7779

Firmware/RTK_Surveyor/menuSystem.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ void menuSystem()
106106
}
107107
Serial.println();
108108

109+
#ifdef COMPILE_WIFI
110+
if (wifiState == WIFI_CONNECTED)
111+
wifiDisplayIpAddress();
112+
#endif
113+
109114
//Display the uptime
110115
uint64_t uptimeMilliseconds = millis();
111116
uint32_t uptimeDays = 0;

0 commit comments

Comments
 (0)