aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-12-15 19:49:14 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-12-15 19:49:14 -0800
commit069e8b7aaf140f9334eb755e8c3af4a78c4b2d27 (patch)
treeac1f7df2c38d898f87c4cbe38bdc7dd0e2fa6f85 /src/test/java/org
parentbc3b09e48efb9a58d9aef111d4316dcd9c0a7038 (diff)
downloadtrackermap-server-069e8b7aaf140f9334eb755e8c3af4a78c4b2d27.tar.gz
trackermap-server-069e8b7aaf140f9334eb755e8c3af4a78c4b2d27.tar.bz2
trackermap-server-069e8b7aaf140f9334eb755e8c3af4a78c4b2d27.zip
Fix temperature decoding
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/traccar/protocol/TaipProtocolDecoderTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/TaipProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/TaipProtocolDecoderTest.java
index b4594bb0e..6682a4d99 100644
--- a/src/test/java/org/traccar/protocol/TaipProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/TaipProtocolDecoderTest.java
@@ -12,6 +12,10 @@ public class TaipProtocolDecoderTest extends ProtocolTest {
TaipProtocolDecoder decoder = new TaipProtocolDecoder(null);
verifyAttribute(decoder, text(
+ ">RUS00,111220124402-3138067-06417623000012200FF,000000000000000000000000000,0000000111,15640422,00000,+25.5,00000,51;ID=CST3G0443;#IP1:089F;*34<"),
+ Position.PREFIX_TEMP + 1, 25.5);
+
+ verifyAttribute(decoder, text(
">RUS00,031120185945-3138060-06417622000209200FF,000000000000000000000000000,0000000000,11440419,00000,00000,00000,00;ID=CST3G0495;#IP0:1EF7;*4B<"),
Position.KEY_BATTERY, 4.19);