diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-01-19 18:42:06 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-01-19 18:42:06 -0800 |
commit | c9e760c301fb2867769d842d35e5c51e3bb843d6 (patch) | |
tree | ad76555d82e678b213af5ed32789b6eebd7f3242 /src/test | |
parent | ce11cf209314dad9f7faa4c942e248ca5f64bc12 (diff) | |
download | trackermap-server-c9e760c301fb2867769d842d35e5c51e3bb843d6.tar.gz trackermap-server-c9e760c301fb2867769d842d35e5c51e3bb843d6.tar.bz2 trackermap-server-c9e760c301fb2867769d842d35e5c51e3bb843d6.zip |
Decode fuel data
Diffstat (limited to 'src/test')
-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 8050d07a1..c5e8d5b2a 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( + "7E0200005C087034547007000B0000000000040003015A7CEF06CF8A84000000000000200108064451570800000000000000000104000000005309010000000000000000300113310109EB1D000800233030302E3838000A0003001A00000000000000050001037700B27E"), + "fuel1", 88.7); + + verifyAttribute(decoder, binary( "7e02000054086031592715006e0000000000000002015a3c1a06c8733800000000000019103022183633362a4d30302c34352c31313338363030526f79314f70656e26303030303030303030303030263132333435363738393031323334353623ff7e"), Position.KEY_BATTERY, 3.86); |