aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-06-29 19:18:59 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-06-29 19:18:59 -0700
commitb56dea19d0fb6742425c00af0ad6034bd4b1abd6 (patch)
tree54b8dbcba7171c91fa7e63ff52086d0c48e98150 /src/test/java/org/traccar/protocol
parent2bc8a4fb021ed2677626f06948b96192facd4d7b (diff)
downloadtrackermap-server-b56dea19d0fb6742425c00af0ad6034bd4b1abd6.tar.gz
trackermap-server-b56dea19d0fb6742425c00af0ad6034bd4b1abd6.tar.bz2
trackermap-server-b56dea19d0fb6742425c00af0ad6034bd4b1abd6.zip
Implement alarm decoding
Diffstat (limited to 'src/test/java/org/traccar/protocol')
-rw-r--r--src/test/java/org/traccar/protocol/FifotrackProtocolDecoderTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/FifotrackProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/FifotrackProtocolDecoderTest.java
index 16572fb47..2e75a180f 100644
--- a/src/test/java/org/traccar/protocol/FifotrackProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/FifotrackProtocolDecoderTest.java
@@ -12,6 +12,10 @@ public class FifotrackProtocolDecoderTest extends ProtocolTest {
FifotrackProtocolDecoder decoder = new FifotrackProtocolDecoder(null);
verifyAttribute(decoder, buffer(
+ "$$123,869467049296388,B996,A01,2,190624131813,V,22.333746,113.590670,0,124,-1,26347,0,0004,00,0,460|0|2694|5A5D,174|0|0|0,B48CEB,*77"),
+ Position.KEY_ALARM, Position.ALARM_SOS);
+
+ verifyAttribute(decoder, buffer(
"$$125,869467049296388,548,A01,38,190619025856,A,22.333905,113.590261,0,12,60,16666,0,0000,00,0,460|0|2694|13F8,1A2|4C1|0|0,B4A067,*7A"),
Position.KEY_DRIVER_UNIQUE_ID, "11837543");