aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-03-06 16:31:49 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2021-03-06 16:31:49 -0800
commit312cd7bd408c978392cacb6ef580288158361ce5 (patch)
tree49b65f998eba6ad6ef5d8cde2e9ecf79da592579 /src/test/java/org/traccar/protocol
parent7f28cbe9a997fb5271ece16f30383d7cc4241575 (diff)
downloadtrackermap-server-312cd7bd408c978392cacb6ef580288158361ce5.tar.gz
trackermap-server-312cd7bd408c978392cacb6ef580288158361ce5.tar.bz2
trackermap-server-312cd7bd408c978392cacb6ef580288158361ce5.zip
Decode heartbeat battery level
Diffstat (limited to 'src/test/java/org/traccar/protocol')
-rw-r--r--src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java
index eeafbbdc4..1f92f5a26 100644
--- a/src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java
@@ -18,6 +18,10 @@ public class Gt06ProtocolDecoderTest extends ProtocolTest {
"78780D01086471700328358100093F040D0A"));
verifyAttribute(decoder, binary(
+ "7878151330802b00000642014f0008720000802b5ee4d4c90d0a"),
+ Position.KEY_BATTERY_LEVEL, 6);
+
+ verifyAttribute(decoder, binary(
"7878281520000000003c49434349443a38393838323339303030303039373330323635303e00020d446f260d0a"),
Position.KEY_ICCID, "89882390000097302650");