aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorNikutrax <112165998+Nikutrax@users.noreply.github.com>2024-05-02 10:24:44 +0200
committerGitHub <noreply@github.com>2024-05-02 10:24:44 +0200
commit31c266483f0fc0507e2b5482c0b81bbc4b1f2857 (patch)
treecfe65893f4684956344a4da1b21a725ee9fefad8 /src/main/java/org/traccar
parent0173d53e967a461560302772c35bcea0251426ed (diff)
downloadtrackermap-server-31c266483f0fc0507e2b5482c0b81bbc4b1f2857.tar.gz
trackermap-server-31c266483f0fc0507e2b5482c0b81bbc4b1f2857.tar.bz2
trackermap-server-31c266483f0fc0507e2b5482c0b81bbc4b1f2857.zip
Update TrvProtocolDecoder.java
because i think the documention was fail (bloodSugar value is in with point) and should so because the server received following: IWAPHP,0,0,0,93,0.0,0.0# 2024-04-30 14:35:36 INFO: [T37978d9e: trv < 109.43.243.234] 4957415048502c302c302c302c39332c302e302c302e3023 2024-04-30 14:35:36 INFO: [T37978d9e] error - For input string: "0.0" - NumberFormatException (... < TrvProtocolDecoder:348 < ExtendedObjectDecoder:75 < ... < WrapperContext:102 < ...)
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/TrvProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/TrvProtocolDecoder.java b/src/main/java/org/traccar/protocol/TrvProtocolDecoder.java
index 8b2e755b2..1187250f8 100644
--- a/src/main/java/org/traccar/protocol/TrvProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/TrvProtocolDecoder.java
@@ -345,7 +345,7 @@ public class TrvProtocolDecoder extends BaseProtocolDecoder {
position.set("pressureSystolic", Integer.parseInt(values[2]));
position.set("pressureDiastolic", Integer.parseInt(values[3]));
position.set("spo2", Integer.parseInt(values[4]));
- position.set("bloodSugar", Integer.parseInt(values[5]));
+ position.set("bloodSugar", Double.parseDouble(values[5]));
position.set("temperature", Double.parseDouble(values[6]));
break;
case "AP50":