tomojitakasu / RTKLIB

2.58k stars 1.63k forks source link

java:Data cannot be obtained by forwarding with NTRIP Server #719

Closed YiMoWanXia closed 1 year ago

YiMoWanXia commented 1 year ago

I wrote a server to get the data and now only receive the following message:

SOURCE 1 RTCM33_GRCEJ
Source-Agent: NTRIP RTKLIB/2.4.2
STR:

The output to the file is fine, the reception through the socket is empty, if I want the socket to receive what should be changed? Here is the main code:

BufferedReader reader = 
    new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
String request = reader.readLine();

while (StrUtil.isNotBlank(request)) {
    System.out.println(request);
    request = reader.readLine();
}