diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-08-10 20:25:31 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-08-10 20:25:31 -0700 |
commit | b56878dde35a8cc9275707a9c486a3cb095a09f5 (patch) | |
tree | 36975d27194b3a08b002854f50c0a9671d012557 /src/test/java/org/traccar/protocol | |
parent | 23c38ed4e661c89c6dfa2f0139efa7620c6fb429 (diff) | |
download | trackermap-server-b56878dde35a8cc9275707a9c486a3cb095a09f5.tar.gz trackermap-server-b56878dde35a8cc9275707a9c486a3cb095a09f5.tar.bz2 trackermap-server-b56878dde35a8cc9275707a9c486a3cb095a09f5.zip |
Fix battery level decoding
Diffstat (limited to 'src/test/java/org/traccar/protocol')
-rw-r--r-- | src/test/java/org/traccar/protocol/T800xProtocolDecoderTest.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/T800xProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/T800xProtocolDecoderTest.java index 48c535c96..d2532d091 100644 --- a/src/test/java/org/traccar/protocol/T800xProtocolDecoderTest.java +++ b/src/test/java/org/traccar/protocol/T800xProtocolDecoderTest.java @@ -11,6 +11,10 @@ public class T800xProtocolDecoderTest extends ProtocolTest { T800xProtocolDecoder decoder = new T800xProtocolDecoder(null); + verifyAttribute(decoder, binary( + "2727020049052e086528404072393849002008060310110000000068b7c8c286eaa441000000008000008100001617410700019ce782b0001e000002581e00000530d4801f00000000"), + Position.KEY_BATTERY_LEVEL, 100); + verifyPosition(decoder, binary( "262602005308090865284040309670000f000f0f0000005a47c000050100000020000000008bfd0020022505185300004041dcc9d6c243b3c6410000012712400000000009e2ffffffffffffffffffffffff09")); |