Skip to content

Commit aa368cc

Browse files
LeeLeahy2nseidle
authored andcommitted
NTRIP Client: Fix WiFi retry cases
* Start ntripClientTimer when starting the network * Restart after 1 minute if network does not start * Reorder authorization failover cases to ensure that all are covered
1 parent 0b5f737 commit aa368cc

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Firmware/RTK_Surveyor/NtripClient.ino

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ void ntripClientUpdate()
509509
//log_d("Caster Response: %s", response);
510510

511511
// Look for various responses
512-
if (strstr(response, "200") != nullptr)
512+
if (strstr(response, "200") != nullptr) //'200' found
513513
{
514514
log_d("NTRIP Client connected to caster");
515515

@@ -573,13 +573,8 @@ void ntripClientUpdate()
573573

574574
// Check for connection limit
575575
if (ntripClientConnectLimitReached())
576-
{
577576
systemPrintln("NTRIP Client retry limit reached; do you have your caster address and port correct?");
578577

579-
// Give up - Shutdown NTRIP client, no further retries
580-
ntripClientStop(true);
581-
}
582-
583578
// Attempt to reconnect after throttle controlled timeout
584579
else
585580
{
@@ -589,9 +584,6 @@ void ntripClientUpdate()
589584
else
590585
systemPrintf("NTRIP Client attempting connection in %d minutes.\r\n",
591586
ntripClientConnectionAttemptTimeout / 1000 / 60);
592-
593-
// Restart network operation after delay
594-
ntripClientStop(false);
595587
}
596588
}
597589
}

0 commit comments

Comments
 (0)