aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/TotemProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-11-05 15:04:07 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-11-05 15:04:07 +1300
commit77d193bf840ceb5294a6cb0d0cd6e1512e2b1efb (patch)
treed846b6081e24b0eb3c4098b6bae392b4546143d7 /src/org/traccar/protocol/TotemProtocolDecoder.java
parent227c9e4d087da882fbaad71cd67e26fd194864ee (diff)
downloadtrackermap-server-77d193bf840ceb5294a6cb0d0cd6e1512e2b1efb.tar.gz
trackermap-server-77d193bf840ceb5294a6cb0d0cd6e1512e2b1efb.tar.bz2
trackermap-server-77d193bf840ceb5294a6cb0d0cd6e1512e2b1efb.zip
Support new Totem protocol format
Diffstat (limited to 'src/org/traccar/protocol/TotemProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/TotemProtocolDecoder.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/TotemProtocolDecoder.java b/src/org/traccar/protocol/TotemProtocolDecoder.java
index 121b56ff9..1fe91b942 100644
--- a/src/org/traccar/protocol/TotemProtocolDecoder.java
+++ b/src/org/traccar/protocol/TotemProtocolDecoder.java
@@ -138,9 +138,11 @@ public class TotemProtocolDecoder extends BaseProtocolDecoder {
.number("(dd)") // external power
.number("(dddd)") // adc 1
.groupBegin()
+ .groupBegin()
.number("(dddd)") // adc 2
.number("(dddd)") // adc 3
.number("(dddd)") // adc 4
+ .groupEnd("?")
.number("(dddd)") // temperature 1
.number("(dddd)") // temperature 2
.groupEnd("?")