aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authornamo <namo@gurtam.com>2017-10-25 10:35:17 +0300
committernamo <namo@gurtam.com>2017-10-25 10:35:17 +0300
commit8e14763c45f2a10ac198d311e770282387cd9070 (patch)
treec41a0320bfaf28dfcb83969e4c4717c7e65a19f8 /src/org/traccar/protocol
parent2ef987e1352c9d9483e062ff82fa83d0511a0972 (diff)
downloadtrackermap-server-8e14763c45f2a10ac198d311e770282387cd9070.tar.gz
trackermap-server-8e14763c45f2a10ac198d311e770282387cd9070.tar.bz2
trackermap-server-8e14763c45f2a10ac198d311e770282387cd9070.zip
flespi integration: listening messages (rev.7)
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/FlespiProtocolDecoder.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/FlespiProtocolDecoder.java b/src/org/traccar/protocol/FlespiProtocolDecoder.java
index 2e57c1dcf..799d78ecb 100644
--- a/src/org/traccar/protocol/FlespiProtocolDecoder.java
+++ b/src/org/traccar/protocol/FlespiProtocolDecoder.java
@@ -40,11 +40,8 @@ import java.util.Date;
public class FlespiProtocolDecoder extends BaseProtocolDecoder {
- private final String protocolName;
-
public FlespiProtocolDecoder(FlespiProtocol protocol) {
super(protocol);
- protocolName = protocol.getName();
}
@Override
@@ -84,7 +81,7 @@ public class FlespiProtocolDecoder extends BaseProtocolDecoder {
}
private void decodePosition(JsonObject object, Position position) {
- position.setProtocol(protocolName);
+ position.setProtocol(getProtocolName());
Date deviceTime = new Date((long) object.getJsonNumber("timestamp").doubleValue() * 1000);
position.setTime(deviceTime);