aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authornamo <namo@gurtam.com>2017-10-24 12:26:29 +0300
committernamo <namo@gurtam.com>2017-10-24 12:26:29 +0300
commit4b8095a1c91ae2fc9bcd6cfc6e291c7b63af3cd1 (patch)
tree5ada29ae0b4c92abaa336ecb396df1dc11cd51ed /src/org/traccar
parentad8ee1702e02e02533e9f20e06af960b2cf3c647 (diff)
downloadtraccar-server-4b8095a1c91ae2fc9bcd6cfc6e291c7b63af3cd1.tar.gz
traccar-server-4b8095a1c91ae2fc9bcd6cfc6e291c7b63af3cd1.tar.bz2
traccar-server-4b8095a1c91ae2fc9bcd6cfc6e291c7b63af3cd1.zip
Revert "flespi integration: listening messages (rev.5): unit test added"
This reverts commit ad8ee1702e02e02533e9f20e06af960b2cf3c647.
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/FlespiProtocolDecoder.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/FlespiProtocolDecoder.java b/src/org/traccar/protocol/FlespiProtocolDecoder.java
index 69a977577..3a12cd7b8 100644
--- a/src/org/traccar/protocol/FlespiProtocolDecoder.java
+++ b/src/org/traccar/protocol/FlespiProtocolDecoder.java
@@ -30,7 +30,6 @@ import javax.json.Json;
import javax.json.JsonArray;
import javax.json.JsonNumber;
import javax.json.JsonObject;
-import javax.json.JsonString;
import java.io.StringReader;
import java.net.SocketAddress;
import java.nio.charset.StandardCharsets;
@@ -57,11 +56,11 @@ public class FlespiProtocolDecoder extends BaseProtocolDecoder {
List<Position> positions = new LinkedList<>();
for (int i = 0; i < result.size(); i++) {
JsonObject message = result.getJsonObject(i);
- JsonString ident = message.getJsonString("ident");
+ String ident = message.getString("ident");
if (ident == null) {
continue;
}
- DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, ident.getString());
+ DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, ident);
if (deviceSession == null) {
continue;
}