aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol/SigfoxProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-06-16 22:36:00 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-06-16 22:36:00 -0700
commit18d86933c465f87e028e9f065c973cf390a2578b (patch)
tree5851ed3a46129e571f7ae9ed12a13d82b16e258e /src/test/java/org/traccar/protocol/SigfoxProtocolDecoderTest.java
parent298fbd76d79c3cb22766d00a37198ee9d970d277 (diff)
downloadtrackermap-server-18d86933c465f87e028e9f065c973cf390a2578b.tar.gz
trackermap-server-18d86933c465f87e028e9f065c973cf390a2578b.tar.bz2
trackermap-server-18d86933c465f87e028e9f065c973cf390a2578b.zip
Fix Oyster Sigfix decoding
Diffstat (limited to 'src/test/java/org/traccar/protocol/SigfoxProtocolDecoderTest.java')
-rw-r--r--src/test/java/org/traccar/protocol/SigfoxProtocolDecoderTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/java/org/traccar/protocol/SigfoxProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/SigfoxProtocolDecoderTest.java
index e118100fb..53f03730a 100644
--- a/src/test/java/org/traccar/protocol/SigfoxProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/SigfoxProtocolDecoderTest.java
@@ -12,7 +12,7 @@ public class SigfoxProtocolDecoderTest extends ProtocolTest {
SigfoxProtocolDecoder decoder = new SigfoxProtocolDecoder(null);
- verifyNull(decoder, request(HttpMethod.POST, "/", buffer("{ \"device\":\"BFE47E\", \"time\":1590497040, \"data\":\"10297eb01e621122070000be\", \"seqNumber\":8, \"deviceTypeId\":\"5ecb8bfac563d620cc9e6798\", \"ack\":false }")));
+ verifyPosition(decoder, request(HttpMethod.POST, "/", buffer("{ \"device\":\"BFE47E\", \"time\":1590497040, \"data\":\"10297eb01e621122070000be\", \"seqNumber\":8, \"deviceTypeId\":\"5ecb8bfac563d620cc9e6798\", \"ack\":false }")));
verifyAttributes(decoder, request(HttpMethod.POST, "/",
buffer("{\"messageType\":\"accelerometer\",\"deviceId\":\"testdev001\",\"snr\":\"1234\",\"rssi\":\"-120.00\",\"station\":\"5678\",\"seqNum\":\"9123\",\"newPosition\":false,\"latitude\":\"null\",\"longitude\":\"null\",\"positionTime\":\"null\",\"moving\":true,\"magChange\":\"true\",\"magStatus\":\"true\",\"temperature\":\"7.5\",\"battery\":\"null\",\"batteryPercentage\":\"null\",\"lastSeen\":\"1582560425\",\"fwVersion\":\"null\",\"dlConfig\":\"null\",\"recievedPayload\":\"cb020051\"}")));