aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-07-29 15:57:14 -0700
committerAnton Tananaev <anton@traccar.org>2024-07-29 15:57:14 -0700
commit44752e41007aff70d16af5fad6fb49b7ed0ef2b2 (patch)
tree40cc4128a03da65825b8f08ab4c45ba474d618b7 /src/test/java/org/traccar/protocol
parent2788174193def918a3a1a5be3bbed24c9613323f (diff)
downloadtrackermap-server-44752e41007aff70d16af5fad6fb49b7ed0ef2b2.tar.gz
trackermap-server-44752e41007aff70d16af5fad6fb49b7ed0ef2b2.tar.bz2
trackermap-server-44752e41007aff70d16af5fad6fb49b7ed0ef2b2.zip
Support Magnet 4G GPS battery
Diffstat (limited to 'src/test/java/org/traccar/protocol')
-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 286ebfed1..023beaeeb 100644
--- a/src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/HuabaoProtocolDecoderTest.java
@@ -12,6 +12,10 @@ public class HuabaoProtocolDecoderTest extends ProtocolTest {
var decoder = inject(new HuabaoProtocolDecoder(null));
verifyAttribute(decoder, binary(
+ "7e02000033017051564189000c00000000000c00020158ff7206cd1f4c000000000123201122115639010400000000300143310114930100e3060064019a0000557e"),
+ Position.KEY_BATTERY_LEVEL, 100);
+
+ verifyAttribute(decoder, binary(
"7e020000520198080908740af300000000000c000f016602a302c662f802fc000000cc24051618132401040000020f30011e310109f30100610204b056020acd5d0b0102d40379b8011423033c51108017ffffffffffffffffffffffffffffc87e"),
Position.PREFIX_TEMP + 1, -32745);