diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-04-01 21:43:45 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-04-01 21:43:45 -0700 |
commit | 91601b305e2ada2f5215af043a00ad50f22e79be (patch) | |
tree | 5f2a80a159ab4e531d464e039f58e936f584234c /src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java | |
parent | 08b950ea73ba142b5681aad4b208755db540cdb0 (diff) | |
download | trackermap-server-91601b305e2ada2f5215af043a00ad50f22e79be.tar.gz trackermap-server-91601b305e2ada2f5215af043a00ad50f22e79be.tar.bz2 trackermap-server-91601b305e2ada2f5215af043a00ad50f22e79be.zip |
Decode ST300H RPM value
Diffstat (limited to 'src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java')
-rw-r--r-- | src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java index 355cda783..f740faa4e 100644 --- a/src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java +++ b/src/test/java/org/traccar/protocol/SuntechProtocolDecoderTest.java @@ -27,6 +27,20 @@ public class SuntechProtocolDecoderTest extends ProtocolTest { } @Test + public void testDecodeRpm() throws Exception { + + SuntechProtocolDecoder decoder = new SuntechProtocolDecoder(null); + + decoder.setHbm(true); + decoder.setIncludeRpm(true); + + verifyAttribute(decoder, text( + "ST300STT;907131077;04;706;20190227;23:59:34;cc719;-12.963490;-038.499587;000.067;000.00;7;1;57095;12.50;000000;1;0337;000207;0.0;1;0;012E717F010000;1"), + Position.KEY_RPM, 0); + + } + + @Test public void testDecodeHours() throws Exception { SuntechProtocolDecoder decoder = new SuntechProtocolDecoder(null); |