Skip to content

Commit 65461b4

Browse files
committed
States: Use RTK_Caster and RTK_Config as base soft AP name
1 parent d8157bc commit 65461b4

File tree

1 file changed

+2
-25
lines changed

1 file changed

+2
-25
lines changed

Firmware/RTK_Everywhere/States.ino

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -208,18 +208,7 @@ void stateUpdate()
208208
case (STATE_BASE_CASTER_NOT_STARTED): {
209209
baseCasterEnableOverride();
210210

211-
#ifdef COMPILE_WIFI
212-
// If the AP is already running, check that the name is correct
213-
if ((WiFi.getMode() == WIFI_AP) || (WiFi.getMode() == WIFI_AP_STA))
214-
{
215-
if (strcmp(WiFi.softAPSSID().c_str(), "RTK Caster") != 0)
216-
{
217-
// The AP name cannot be changed while it is running. WiFi must be restarted.
218-
restartWiFi = true; // Tell network layer to restart WiFi
219-
}
220-
}
221-
#endif // COMPILE_WIFI
222-
211+
wifiSoftApSsid = "RTK Caster";
223212
changeState(STATE_BASE_NOT_STARTED);
224213
}
225214
break;
@@ -437,24 +426,12 @@ void stateUpdate()
437426
wifiEspNowOff(__FILE__, __LINE__); // We don't need ESP-NOW during web config
438427

439428
// The GNSS UART task is left running to allow GNSS receivers to obtain LLh data for 1Hz page updates
440-
441-
#ifdef COMPILE_WIFI
442-
// If the AP is already running, check that the name is correct
443-
if ((WiFi.getMode() == WIFI_AP) || (WiFi.getMode() == WIFI_AP_STA))
444-
{
445-
if (strcmp(WiFi.softAPSSID().c_str(), "RTK Config") != 0)
446-
{
447-
// The AP name cannot be changed while it is running. WiFi must be restarted.
448-
restartWiFi = true; // Tell network layer to restart WiFi
449-
}
450-
}
451-
#endif // COMPILE_WIFI
452-
453429
// Stop any running NTRIP Client or Server
454430
ntripClientStop(true); // Do not allocate new wifiClient
455431
for (int serverIndex = 0; serverIndex < NTRIP_SERVER_MAX; serverIndex++)
456432
ntripServerStop(serverIndex, true); // Do not allocate new wifiClient
457433

434+
wifiSoftApSsid = "RTK Config";
458435
webServerStart(); // Start the webserver state machine for web config
459436

460437
RTK_MODE(RTK_MODE_WEB_CONFIG);

0 commit comments

Comments
 (0)