aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/SigfoxProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-08-31 09:37:26 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-08-31 09:37:26 -0700
commit50e7e2b17ba580afddaf11a0ea079b4535cf2478 (patch)
tree3556c5c371f0a641d91a29fc6b3870dc6dc458a1 /src/test/java/org/traccar/protocol/SigfoxProtocolDecoderTest.java
parent02c11aa5bb9506357b5007084e80ef1bbc8ecd78 (diff)
downloadtrackermap-server-50e7e2b17ba580afddaf11a0ea079b4535cf2478.tar.gz
trackermap-server-50e7e2b17ba580afddaf11a0ea079b4535cf2478.tar.bz2
trackermap-server-50e7e2b17ba580afddaf11a0ea079b4535cf2478.zip
Implement SOS alarm
Diffstat (limited to 'src/test/java/org/traccar/protocol/SigfoxProtocolDecoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/SigfoxProtocolDecoderTest.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/SigfoxProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/SigfoxProtocolDecoderTest.java
index 7e7fc24bc..fdd780073 100644
--- a/src/test/java/org/traccar/protocol/SigfoxProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/SigfoxProtocolDecoderTest.java
@@ -3,6 +3,7 @@ package org.traccar.protocol;
import io.netty.handler.codec.http.HttpMethod;
import org.junit.Test;
import org.traccar.ProtocolTest;
+import org.traccar.model.Position;
public class SigfoxProtocolDecoderTest extends ProtocolTest {
@@ -11,6 +12,10 @@ public class SigfoxProtocolDecoderTest extends ProtocolTest {
SigfoxProtocolDecoder decoder = new SigfoxProtocolDecoder(null);
+ verifyAttribute(decoder, request(HttpMethod.POST, "/",
+ buffer("{ \"device\": \"40D310\", \"payload\": \"62\", \"time\": 1563043532, \"seqNumber\": 1076 }")),
+ Position.KEY_ALARM, Position.ALARM_SOS);
+
verifyAttributes(decoder, request(HttpMethod.POST, "/",
buffer("{ \"device\": \"40D310\", \"payload\": \"20061494480389f956042a\", \"time\": 1563043532, \"seqNumber\": 1076 }")));