aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-04-01 20:46:28 -0700
committerAnton Tananaev <anton@traccar.org>2024-04-01 20:46:28 -0700
commit5606f054244fc1ea2d5929152dd5c997d04f66fa (patch)
treee7a55159b1497aa2aa145844276354eb062b771b /src/main/java/org/traccar/protocol
parente4134911f17cbe6f556a8bc4d1b3f5073474a940 (diff)
downloadtrackermap-server-5606f054244fc1ea2d5929152dd5c997d04f66fa.tar.gz
trackermap-server-5606f054244fc1ea2d5929152dd5c997d04f66fa.tar.bz2
trackermap-server-5606f054244fc1ea2d5929152dd5c997d04f66fa.zip
Support binary Atrack motion
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java
index 8896dcfb0..834f4f16c 100644
--- a/src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 - 2021 Anton Tananaev (anton@traccar.org)
+ * Copyright 2013 - 2024 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -325,6 +325,9 @@ public class AtrackProtocolDecoder extends BaseProtocolDecoder {
case "SA":
position.set(Position.KEY_SATELLITES, buf.readUnsignedByte());
break;
+ case "MT":
+ position.set(Position.KEY_MOTION, buf.readUnsignedByte() > 0);
+ break;
case "MV":
position.set(Position.KEY_POWER, buf.readUnsignedShort() * 0.1);
break;