aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-02-22 07:17:51 -0800
committerAnton Tananaev <anton@traccar.org>2024-02-22 07:17:51 -0800
commit2ab6df0a53e299f5cd6ef880c70054547d07fe42 (patch)
tree8f1e88400e483b04a6e8b11c240b7fbae6b58e67 /src/test/java/org/traccar/protocol
parent8cf3fcd643faebd9cb0937bc1e8454a22ad8b137 (diff)
downloadtrackermap-server-2ab6df0a53e299f5cd6ef880c70054547d07fe42.tar.gz
trackermap-server-2ab6df0a53e299f5cd6ef880c70054547d07fe42.tar.bz2
trackermap-server-2ab6df0a53e299f5cd6ef880c70054547d07fe42.zip
Fix SL44/SL48 alarms decoding
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 be8f4f5ef..04d7fafb3 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(
+ "78782732180214123324ca0162bdf0041f45d900190b0a02d4000bc5270000ec025206040202005e07e10d0a"),
+ Position.KEY_ALARM, Position.ALARM_POWER_CUT);
+
+ verifyAttribute(decoder, binary(
"78782616170A080C0E24C0027C58AD0C2B8B0100454E0901CC0025030328E7A0005D4B13021EC373170D0A"),
Position.KEY_BATTERY_LEVEL, 93);