aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoranton2920 <anton2920@gmail.com>2022-07-24 18:43:30 +0100
committeranton2920 <anton2920@gmail.com>2022-09-07 09:48:53 +0100
commitb66d4c3b3250edac4762176277f4f07bc2e74d8e (patch)
treedafe947482d7d3c65a8d475af27fb7c6715b6d62 /src
parent62b38f2ccf0db60e7e953485898a1d3bf5c452e0 (diff)
downloadtrackermap-server-b66d4c3b3250edac4762176277f4f07bc2e74d8e.tar.gz
trackermap-server-b66d4c3b3250edac4762176277f4f07bc2e74d8e.tar.bz2
trackermap-server-b66d4c3b3250edac4762176277f4f07bc2e74d8e.zip
Commented out 'System.out.println()'s
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/protocol/PiligrimProtocolDecoder.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main/java/org/traccar/protocol/PiligrimProtocolDecoder.java b/src/main/java/org/traccar/protocol/PiligrimProtocolDecoder.java
index 967adb82b..775032b64 100644
--- a/src/main/java/org/traccar/protocol/PiligrimProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/PiligrimProtocolDecoder.java
@@ -172,11 +172,11 @@ public class PiligrimProtocolDecoder extends BaseHttpProtocolDecoder {
* &phone&message
*/
String[] payload_parts = payload.split("&");
- System.out.println("Payload parts: " + Arrays.toString(payload_parts));
+ /* System.out.println("Payload parts: " + Arrays.toString(payload_parts)); */
String phone_number = payload_parts[1].substring(15);
String message = payload_parts[2].substring(8);
- System.out.println("Phone number: " + phone_number);
- System.out.println("Message: " + message);
+ /* System.out.println("Phone number: " + phone_number); */
+ /* System.out.println("Message: " + message); */
if (message.startsWith("$GPRMC")) {
/* Supported message structure:
@@ -186,28 +186,28 @@ public class PiligrimProtocolDecoder extends BaseHttpProtocolDecoder {
System.out.println("Supported message");
String[] message_parts = message.split(";");
- System.out.println("Message parts: " + Arrays.toString(message_parts));
+ /* System.out.println("Message parts: " + Arrays.toString(message_parts)); */
/* Parsing GPS */
String unprocessed_gps_command = message_parts[0];
/* Getting rid of checksum */
String gps_command = unprocessed_gps_command.replaceFirst("A,V[*].*", "");
- System.out.println("GPS command: " + gps_command);
+ /* System.out.println("GPS command: " + gps_command); */
NMEA gps_parser = new NMEA();
NMEA.GPSPosition gps_position = gps_parser.parse(gps_command);
- System.out.println("Time: " + gps_position.time);
- System.out.println("Coordinates: " + gps_position.lat + " " + gps_position.lon);
- System.out.println("Speed over ground: " + gps_position.velocity + " knots");
+ /* System.out.println("Time: " + gps_position.time); */
+ /* System.out.println("Coordinates: " + gps_position.lat + " " + gps_position.lon); */
+ /* System.out.println("Speed over ground: " + gps_position.velocity + " knots"); */
/* Parsing other fields */
/* String gsm_info = message_parts[1]; */
/* String unknown = message_parts[2]; */
String battery_info = message_parts[3].substring(7).substring(0, 3);
- System.out.println("Battery: " + battery_info);
+ /* System.out.println("Battery: " + battery_info); */
/* Constructing response */
Position position = new Position(getProtocolName());