aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-10-08 14:13:04 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-10-08 14:13:04 -0700
commit6e85d9023c67cd7f8c35c78665381b6dc732b0a8 (patch)
treef696580aaaea4099717ab547870899621d063173 /src/test/java/org/traccar/protocol
parentb6dfdef54b8fab3c7bca9b6a2057d8a27f9df4a8 (diff)
downloadtraccar-server-6e85d9023c67cd7f8c35c78665381b6dc732b0a8.tar.gz
traccar-server-6e85d9023c67cd7f8c35c78665381b6dc732b0a8.tar.bz2
traccar-server-6e85d9023c67cd7f8c35c78665381b6dc732b0a8.zip
Decode GL500M battery level
Diffstat (limited to 'src/test/java/org/traccar/protocol')
-rw-r--r--src/test/java/org/traccar/protocol/Gl200TextProtocolDecoderTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/Gl200TextProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/Gl200TextProtocolDecoderTest.java
index e32bea8b5..915876609 100644
--- a/src/test/java/org/traccar/protocol/Gl200TextProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/Gl200TextProtocolDecoderTest.java
@@ -12,6 +12,10 @@ public class Gl200TextProtocolDecoderTest extends ProtocolTest {
Gl200TextProtocolDecoder decoder = new Gl200TextProtocolDecoder(null);
verifyAttribute(decoder, buffer(
+ "+RESP:GTERI,DE0115,865284042104863,gl500m,00000100,0,0,1,2,0.0,0,36.9,-1.844589,52.177779,20201006125701,0234,0015,0135,34A1,19,0,,79,1,,0,20201006125723,184D$"),
+ Position.KEY_BATTERY_LEVEL, 79);
+
+ verifyAttribute(decoder, buffer(
"+RESP:GTFRI,DE0114,865284042140479,,0,0,1,1,0.0,0,28.0,-118.268093,33.975430,20200901105954,0311,0480,3500,00D07F02,18,0,,93,0,,,20200901110000,0355$"),
Position.KEY_BATTERY_LEVEL, 93);