aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-05-16 15:30:36 -0700
committerAnton Tananaev <anton@traccar.org>2024-05-16 15:30:42 -0700
commitf1a3367864fde22c1df3ee1a5a5e886be496031d (patch)
tree6c4fab4648535c5ab195ed3db560045631029280 /src/test/java
parent39d0cb2f449c3fcd3ac28f2cd5ead8054c256b4e (diff)
downloadtrackermap-server-f1a3367864fde22c1df3ee1a5a5e886be496031d.tar.gz
trackermap-server-f1a3367864fde22c1df3ee1a5a5e886be496031d.tar.bz2
trackermap-server-f1a3367864fde22c1df3ee1a5a5e886be496031d.zip
Support JT/T808 temperature sensors
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java
index 425c88785..2ba37ab09 100644
--- a/src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java
@@ -12,6 +12,10 @@ public class HuabaoProtocolDecoderTest extends ProtocolTest {
var decoder = inject(new HuabaoProtocolDecoder(null));
verifyAttribute(decoder, binary(
+ "7e020000520198080908740af300000000000c000f016602a302c662f802fc000000cc24051618132401040000020f30011e310109f30100610204b056020acd5d0b0102d40379b8011423033c51108017ffffffffffffffffffffffffffffc87e"),
+ Position.PREFIX_TEMP + 1, -32745);
+
+ verifyAttribute(decoder, binary(
"7e020000460100503769640002000001000000001a01b9eaf804d8ee86001800000000240507035152010400000000300100310107eb1c00060089fffffffe000400ce0000000c00b28942310221007544309f5f7e"),
Position.KEY_ICCID, "8942310221007544309");