aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-02-15 23:26:07 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2021-02-15 23:26:07 -0800
commit8d1bb744f845cb605417229e000d49d9cd58b54b (patch)
tree2dfe31463a79135a44ca1b22ca15898dade9bdb9 /src/main/java/org/traccar/protocol
parent9d6372ccb2e320ef710c17a576ed6028ed618bf4 (diff)
downloadtraccar-server-8d1bb744f845cb605417229e000d49d9cd58b54b.tar.gz
traccar-server-8d1bb744f845cb605417229e000d49d9cd58b54b.tar.bz2
traccar-server-8d1bb744f845cb605417229e000d49d9cd58b54b.zip
Decode temperature and humidity
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java
index 9300acf60..186b81470 100644
--- a/src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java
@@ -155,10 +155,10 @@ public class AtrackProtocolDecoder extends BaseProtocolDecoder {
break;
case 3:
if (BitUtil.check(mask, 6)) {
- data.readUnsignedShort();
+ position.set("tag" + i + "Humidity", data.readUnsignedShort());
}
if (BitUtil.check(mask, 5)) {
- data.readUnsignedShort();
+ position.set("tag" + i + "Temp", data.readUnsignedShort());
}
if (BitUtil.check(mask, 3)) {
position.set("tag" + i + "Rssi", data.readUnsignedByte());