aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Arnavi4ProtocolDecoder.java
diff options
context:
space:
mode:
authorIvan Muratov <binakot@gmail.com>2017-10-24 14:45:30 +0300
committerIvan Muratov <binakot@gmail.com>2017-10-24 14:45:30 +0300
commitd225018f7aadefab6381d5283347bae10e153bfa (patch)
tree7f7cfedc2ba6366b94d7ab0f926dbfab2dd4dae2 /src/org/traccar/protocol/Arnavi4ProtocolDecoder.java
parent05bcc7359b52cad0036bcb32888b7e999a3efb25 (diff)
downloadtrackermap-server-d225018f7aadefab6381d5283347bae10e153bfa.tar.gz
trackermap-server-d225018f7aadefab6381d5283347bae10e153bfa.tar.bz2
trackermap-server-d225018f7aadefab6381d5283347bae10e153bfa.zip
Arnavi4 frame decoder's code reorganization based on traccar maintainer comments.
Diffstat (limited to 'src/org/traccar/protocol/Arnavi4ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Arnavi4ProtocolDecoder.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/Arnavi4ProtocolDecoder.java b/src/org/traccar/protocol/Arnavi4ProtocolDecoder.java
index e3e027993..06abb563f 100644
--- a/src/org/traccar/protocol/Arnavi4ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Arnavi4ProtocolDecoder.java
@@ -30,12 +30,12 @@ import java.util.Date;
import java.util.LinkedList;
import java.util.List;
-import static org.traccar.protocol.Arnavi4FrameDecoder.HEADER_START_SIGN;
-import static org.traccar.protocol.Arnavi4FrameDecoder.HEADER_VERSION_1;
-import static org.traccar.protocol.Arnavi4FrameDecoder.HEADER_VERSION_2;
-
public class Arnavi4ProtocolDecoder extends BaseProtocolDecoder {
+ private static final byte HEADER_START_SIGN = (byte) 0xff;
+ private static final byte HEADER_VERSION_1 = 0x22;
+ private static final byte HEADER_VERSION_2 = 0x23;
+
private static final byte RECORD_PING = 0x00;
private static final byte RECORD_DATA = 0x01;
private static final byte RECORD_TEXT = 0x03;