diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2024-06-30 07:02:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-30 07:02:30 -0700 |
commit | 890d896eed89f33b9d71e894639cc8ec46ec0d68 (patch) | |
tree | bf63b405b600142652efce4b19f0fed87689aa38 /src/test/java/org/traccar/protocol | |
parent | 9c2c1566ab292ecc351c273c2ab0f3faf75a7daf (diff) | |
parent | be3180dce3889e201340d1542df46288191ee8f5 (diff) | |
download | trackermap-server-890d896eed89f33b9d71e894639cc8ec46ec0d68.tar.gz trackermap-server-890d896eed89f33b9d71e894639cc8ec46ec0d68.tar.bz2 trackermap-server-890d896eed89f33b9d71e894639cc8ec46ec0d68.zip |
Merge pull request #5358 from jcardus/huabao
Implemented power and battery for aovx v series
Diffstat (limited to 'src/test/java/org/traccar/protocol')
-rw-r--r-- | src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java index 2ba37ab09..286ebfed1 100644 --- a/src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java +++ b/src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java @@ -227,6 +227,14 @@ public class HuabaoProtocolDecoderTest extends ProtocolTest { verifyNull(decoder, binary( "7e0002000004304832546500b7ca7e")); + verifyAttribute(decoder, binary( + "7E020000964130564801050048000000001000004F01651E2E02CAEC3802E80000001524062616002101040000000330011F31010EF1040000308CF231414F56585F564C3330302D4C415F48322E315F4547393135554C4141425230334130324D30385F56322E312E305F763130F3011FF400F5080000000000000001F6084008FFFFFFFD0009F70600000E870246F912000F000000010000062A00082406261600184D7E"), + Position.KEY_CHARGE, true); + + verifyAttribute(decoder, binary( + "7E020000964130564801050048000000001000004F01651E2E02CAEC3802E80000001524062616002101040000000330011F31010EF1040000308CF231414F56585F564C3330302D4C415F48322E315F4547393135554C4141425230334130324D30385F56322E312E305F763130F3011FF400F5080000000000000001F6084008FFFFFFFD0009F70600000E870246F912000F000000010000062A00082406261600184D7E"), + Position.KEY_POWER, 12.428); + } } |