aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-07-22 22:38:34 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-07-22 22:38:34 -0700
commitbd12d76efb0fe728f2f001afeb5c5cfaf979af43 (patch)
tree37051f22324d81606548989ec708edb07ee08386 /src/test/java/org/traccar
parent44241abf9dbafaec4faa982e673ebf1d447176fd (diff)
downloadtrackermap-server-bd12d76efb0fe728f2f001afeb5c5cfaf979af43.tar.gz
trackermap-server-bd12d76efb0fe728f2f001afeb5c5cfaf979af43.tar.bz2
trackermap-server-bd12d76efb0fe728f2f001afeb5c5cfaf979af43.zip
Fix battery decoding
Diffstat (limited to 'src/test/java/org/traccar')
-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 8c4a0278d..f600a77d4 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 {
"7E01000021013345678906000F002C012F373031313142534A2D4D3742203030303030303001D4C1423838383838B47E"));
verifyAttribute(decoder, binary(
+ "7e550104337401903111850622072002454206133574075359513a0000080100000001aa00005ded05e203000000000c06005affb5ffb40a0302dc65100100137e"),
+ Position.KEY_CHARGE, true);
+
+ verifyAttribute(decoder, binary(
"283734303139303331313138352c312c3030312c454c4f434b2c332c35323934333929"),
Position.KEY_RESULT, "(740190311185,1,001,ELOCK,3,529439)");