aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-02-15 11:11:01 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-02-15 11:11:01 -0800
commit8bf4c171e1771eb89506a87ba8435776ee61286e (patch)
tree330e58559ea6048ba5510cc3bf82a4424a88ad02 /src/test/java/org/traccar/protocol
parentc860f15e6a541c72d901d928941912edb943883e (diff)
downloadtraccar-server-8bf4c171e1771eb89506a87ba8435776ee61286e.tar.gz
traccar-server-8bf4c171e1771eb89506a87ba8435776ee61286e.tar.bz2
traccar-server-8bf4c171e1771eb89506a87ba8435776ee61286e.zip
Fix ADC decoding
Diffstat (limited to 'src/test/java/org/traccar/protocol')
-rw-r--r--src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java
index 82f0a29e1..692a13131 100644
--- a/src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java
@@ -13,6 +13,11 @@ public class SuntechProtocolDecoderTest extends ProtocolTest {
decoder.setHbm(true);
decoder.setIncludeAdc(true);
+
+ verifyAttribute(decoder, buffer(
+ "ST600STT;008594432;20;492;20200212;18:58:30;060bb0e1;334;20;36bb;45;+19.337897;-099.064489;000.398;000.00;12;1;5049883;13.61;100100;2;1198;013762;4.2;1;4.68"),
+ Position.PREFIX_ADC + 1, 4.68);
+
decoder.setIncludeTemp(true);
verifyAttribute(decoder, buffer(