aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-04-06 19:39:56 -0700
committerAnton Tananaev <anton@traccar.org>2023-04-06 19:39:56 -0700
commit5da3b8fcb480736161aa6a0896501f00f197bc13 (patch)
tree67aa29fa73add60f1799690d3e6f0130ca06ad57 /src/test
parent4ece72558c80038728fa67ec51238bac48fc4d64 (diff)
downloadtrackermap-server-5da3b8fcb480736161aa6a0896501f00f197bc13.tar.gz
trackermap-server-5da3b8fcb480736161aa6a0896501f00f197bc13.tar.bz2
trackermap-server-5da3b8fcb480736161aa6a0896501f00f197bc13.zip
Decode 808 battery level
Diffstat (limited to 'src/test')
-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 4541185f4..67f214563 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(
+ "7e0200002f017028775424038d000000000000000a0189dbeb04ca653a00000012014723040700074401040000000030011b31010ee1012dea020001dc7e"),
+ Position.KEY_BATTERY_LEVEL, 45);
+
+ verifyAttribute(decoder, binary(
"7E02000079013653183645009E00000000000C0C030158BF0006C926670000004000CE22120904274201040000005DBC3244524956494E47204C4943454E53452454455354244D522E0000000000000000000000000000000000000000000000000000BD0F323431393939393935383030313030E3060000050500007102000C30011F310108987E"),
"driver", "DRIVING LICENSE$TEST$MR.");