@@ -156,7 +156,9 @@ bool ntripClientConnectLimitReached()
156156 {
157157 // No more connection attempts, switching to Bluetooth
158158 Serial.println (" NTRIP Client connection attempts exceeded!" );
159- ntripClientSwitchToBluetooth ();
159+
160+ // Stop WiFi operations
161+ ntripClientStop (true );
160162 }
161163 return limitReached;
162164}
@@ -183,18 +185,6 @@ void ntripClientResponse(char * response, size_t maxLength)
183185 *response = ' \0 ' ;
184186}
185187
186- // Switch to Bluetooth operation
187- void ntripClientSwitchToBluetooth ()
188- {
189- Serial.println (" NTRIP Client failure, switching to Bluetooth!" );
190-
191- // Stop WiFi operations
192- ntripClientStop (true );
193-
194- // Turn on Bluetooth with 'Rover' name
195- bluetoothStart ();
196- }
197-
198188// Update the state of the NTRIP client state machine
199189void ntripClientSetState (byte newState)
200190{
@@ -391,8 +381,8 @@ void ntripClientUpdate()
391381 // Look for '401 Unauthorized'
392382 Serial.printf (" NTRIP Client caster responded with bad news: %s. Are you sure your caster credentials are correct?\n\r " , response);
393383
394- // Switch to Bluetooth operation
395- ntripClientSwitchToBluetooth ( );
384+ // Stop WiFi operations
385+ ntripClientStop ( true );
396386 }
397387 else
398388 {
@@ -460,7 +450,7 @@ void ntripClientUpdate()
460450 i2cGNSS.pushRawData (rtcmData, rtcmCount);
461451 wifiIncomingRTCM = true ;
462452
463- if (!inMainMenu) log_d (" NTRIP Client received %d RTCM bytes, pushed to ZED" , rtcmCount);
453+ if (!inMainMenu) log_d (" NTRIP Client received %d RTCM bytes, pushed to ZED" , rtcmCount);
464454 }
465455 }
466456
0 commit comments