diff options
author | Anton Tananaev <anton@traccar.org> | 2023-06-15 05:53:04 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-06-15 05:53:04 -0700 |
commit | 4a64ef748e207406be4f7aa7538d59b7b0f9735c (patch) | |
tree | 105bc58f18dd3570fc71bb2ae07af5d554fd166a /src/test/java/org/traccar/protocol | |
parent | 03650fff8064b60ffcda75f9033fd44e66ef34b3 (diff) | |
download | trackermap-server-4a64ef748e207406be4f7aa7538d59b7b0f9735c.tar.gz trackermap-server-4a64ef748e207406be4f7aa7538d59b7b0f9735c.tar.bz2 trackermap-server-4a64ef748e207406be4f7aa7538d59b7b0f9735c.zip |
Decode JT808 battery level
Diffstat (limited to 'src/test/java/org/traccar/protocol')
-rw-r--r-- | src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java | 4 |
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 5fd9ed894..9c3fc164a 100644 --- a/src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java +++ b/src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java @@ -15,6 +15,10 @@ public class HuabaoProtocolDecoderTest extends ProtocolTest { "7e010200204f07788ef67601824f4459344f544d314d4459774d4441314d444977626d5633553235536457786cba7e")); verifyAttribute(decoder, binary( + "7e0200003f014501643822000300020000000c000c0000000000000000000000000000230615143903300111310100530901027f0300456f073e56020900fe02001e57080002000200000000df7e"), + Position.KEY_BATTERY_LEVEL, 90); + + verifyAttribute(decoder, binary( "7e090000344f07788ef87d0138f02305151230460102020001ffffffff000100001457000000020006503134353700000c000a029dc63004b99a98230515132726787e"), Position.KEY_DTCS, "P1457"); |