aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-07-01 21:52:41 -0700
committerAnton Tananaev <anton@traccar.org>2023-07-01 21:52:41 -0700
commitd4c204914f907f7bbdf34a965500797b03fafdf8 (patch)
treea9cc6e78ef7ccef654547a3a9404b40bde0e4265 /src/test/java
parent18ee50d2b0ddd75328a1c43fff21be5a4f11910d (diff)
downloadtrackermap-server-d4c204914f907f7bbdf34a965500797b03fafdf8.tar.gz
trackermap-server-d4c204914f907f7bbdf34a965500797b03fafdf8.tar.bz2
trackermap-server-d4c204914f907f7bbdf34a965500797b03fafdf8.zip
Decode R31 heartbeat data
Diffstat (limited to 'src/test/java')
-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 8f2c97f86..937c7eca1 100644
--- a/src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/Gt06ProtocolDecoderTest.java
@@ -17,6 +17,10 @@ public class Gt06ProtocolDecoderTest extends ProtocolTest {
verifyNull(decoder, binary(
"78780D01086471700328358100093F040D0A"));
+ verifyAttribute(decoder, binary(
+ "78780a130604ea04000006bc8a0d0a"),
+ Position.KEY_POWER, 0.0);
+
verifyAttributes(decoder, binary(
"797900849404414c4d313d43353b414c4d323d43433b414c4d333d35433b535441313d43303b4459443d30313b534f533d303133323838333730302c2c3b43454e5445523d303133323838333730303b46454e43453d46656e63652c4f46462c302c302e3030303030302c302e3030303030302c3330302c494e206f72204f55542c313b00b79d120d0a"));