aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-10-17 16:54:56 -0700
committerAnton Tananaev <anton@traccar.org>2022-10-17 16:54:56 -0700
commitdcecec13f6392980512e0ded566680c3dd657ab4 (patch)
tree2e571d1cdd7ea0232cdc3d3173f8a0b413612953 /src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java
parent94bb9f2ace4134b4cfc9d0ca2a16f79ce9ec4bce (diff)
downloadtrackermap-server-dcecec13f6392980512e0ded566680c3dd657ab4.tar.gz
trackermap-server-dcecec13f6392980512e0ded566680c3dd657ab4.tar.bz2
trackermap-server-dcecec13f6392980512e0ded566680c3dd657ab4.zip
Fix Suntech alert decoding
Diffstat (limited to 'src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java
index ebd48c5c7..e25ad124c 100644
--- a/src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java
@@ -84,6 +84,10 @@ public class SuntechProtocolDecoderTest extends ProtocolTest {
var decoder = inject(new SuntechProtocolDecoder(null));
verifyAttribute(decoder, buffer(
+ "ALT;0950030205;3FFFFF;95;1.0.11;0;20221017;21:41:30;02F2F402;334;20;0F1D;45;+25.791061;-100.170745;0.00;0.00;18;1;00000101;00000000;42;2;"),
+ Position.KEY_ALARM, Position.ALARM_SOS);
+
+ verifyAttribute(decoder, buffer(
"RES;4309999001;04;02;TEST"),
Position.KEY_RESULT, "04;02;TEST");