@@ -663,8 +663,8 @@ void ntripServerUpdate(int serverIndex)
663
663
// Assume service not available
664
664
if (ntripServerConnectLimitReached (serverIndex)) // Update ntripServer->connectionAttemptTimeout
665
665
systemPrintf (
666
- " NTRIP Server %d failed to connect! Do you have your caster address and port correct?\r\n " ,
667
- serverIndex);
666
+ " NTRIP Server %d - %s failed to connect! Do you have your caster address and port correct?\r\n " ,
667
+ serverIndex, settings. ntripServer_CasterHost [serverIndex] );
668
668
}
669
669
else
670
670
{
@@ -690,8 +690,8 @@ void ntripServerUpdate(int serverIndex)
690
690
if (millis () - ntripServer->timer > 10000 )
691
691
{
692
692
if (ntripServerConnectLimitReached (serverIndex))
693
- systemPrintf (" Caster %d failed to respond. Do you have your caster address and port correct?\r\n " ,
694
- serverIndex);
693
+ systemPrintf (" Caster %d - %s failed to respond. Do you have your caster address and port correct?\r\n " ,
694
+ serverIndex, settings. ntripServer_CasterHost [serverIndex] );
695
695
}
696
696
}
697
697
else
@@ -701,26 +701,26 @@ void ntripServerUpdate(int serverIndex)
701
701
ntripServerResponse (serverIndex, response, sizeof (response));
702
702
703
703
if (settings.debugNtripServerState )
704
- systemPrintf (" Server %d Response: %s\r\n " , serverIndex, response);
704
+ systemPrintf (" Server %d - %s Response: %s\r\n " , serverIndex, settings. ntripServer_CasterHost [serverIndex] , response);
705
705
else
706
- log_d (" Server %d Response: %s" , serverIndex, response);
706
+ log_d (" Server %d - %s Response: %s" , serverIndex, settings. ntripServer_CasterHost [serverIndex] , response);
707
707
708
708
// Look for various responses
709
709
if (strstr (response, " 200" ) != nullptr ) // '200' found
710
710
{
711
711
// We got a response, now check it for possible errors
712
712
if (strcasestr (response, " banned" ) != nullptr )
713
713
{
714
- systemPrintf (" NTRIP Server %d connected to caster but caster responded with banned error: %s\r\n " ,
715
- serverIndex, response);
714
+ systemPrintf (" NTRIP Server %d connected to %s but caster responded with banned error: %s\r\n " ,
715
+ serverIndex, settings. ntripServer_CasterHost [serverIndex], response);
716
716
717
717
// Stop NTRIP Server operations
718
718
ntripServerShutdown (serverIndex);
719
719
}
720
720
else if (strcasestr (response, " sandbox" ) != nullptr )
721
721
{
722
- systemPrintf (" NTRIP Server %d connected to caster but caster responded with sandbox error: %s\r\n " ,
723
- serverIndex, response);
722
+ systemPrintf (" NTRIP Server %d connected to %s but caster responded with sandbox error: %s\r\n " ,
723
+ serverIndex, settings. ntripServer_CasterHost [serverIndex], response);
724
724
725
725
// Stop NTRIP Server operations
726
726
ntripServerShutdown (serverIndex);
@@ -754,8 +754,8 @@ void ntripServerUpdate(int serverIndex)
754
754
// Other errors returned by the caster
755
755
else
756
756
{
757
- systemPrintf (" NTRIP Server %d connected but caster responded with problem: %s\r\n " , serverIndex,
758
- response);
757
+ systemPrintf (" NTRIP Server %d connected but %s responded with problem: %s\r\n " , serverIndex,
758
+ settings. ntripServer_CasterHost [serverIndex], response);
759
759
760
760
// Check for connection limit
761
761
if (ntripServerConnectLimitReached (serverIndex))
@@ -770,20 +770,20 @@ void ntripServerUpdate(int serverIndex)
770
770
case NTRIP_SERVER_CASTING:
771
771
// Determine if the network has failed
772
772
if (networkIsShuttingDown (NETWORK_USER_NTRIP_SERVER + serverIndex))
773
- // Failed to connect to to the network, attempt to restart the network
773
+ // Failed to connect to the network, attempt to restart the network
774
774
ntripServerRestart (serverIndex);
775
775
776
776
// Check for a broken connection
777
777
else if (!ntripServer->networkClient ->connected ())
778
778
{
779
779
// Broken connection, retry the NTRIP connection
780
- systemPrintf (" Connection to NTRIP Caster %d was lost\r\n " , serverIndex);
780
+ systemPrintf (" Connection to NTRIP Caster %d - %s was lost\r\n " , serverIndex, settings. ntripServer_CasterHost [serverIndex] );
781
781
ntripServerRestart (serverIndex);
782
782
}
783
783
else if ((millis () - ntripServer->timer ) > (10 * 1000 ))
784
784
{
785
785
// GNSS stopped sending RTCM correction data
786
- systemPrintf (" NTRIP Server %d breaking connection to caster due to lack of RTCM data!\r\n " , serverIndex);
786
+ systemPrintf (" NTRIP Server %d breaking connection to %s due to lack of RTCM data!\r\n " , serverIndex, settings. ntripServer_CasterHost [serverIndex] );
787
787
ntripServerRestart (serverIndex);
788
788
}
789
789
else
@@ -801,7 +801,7 @@ void ntripServerUpdate(int serverIndex)
801
801
ntripServer->connectionAttempts = 0 ;
802
802
ntripServer->connectionAttemptTimeout = 0 ;
803
803
if (settings.debugNtripServerState )
804
- systemPrintf (" NTRIP Server %d resetting connection attempt counter and timeout\r\n " , serverIndex);
804
+ systemPrintf (" NTRIP Server %d - %s resetting connection attempt counter and timeout\r\n " , serverIndex, settings. ntripServer_CasterHost [serverIndex] );
805
805
}
806
806
}
807
807
break ;
0 commit comments