aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Context.java
diff options
context:
space:
mode:
authornamo <namo@gurtam.com>2017-10-19 17:59:25 +0300
committernamo <namo@gurtam.com>2017-10-19 17:59:25 +0300
commitda4fce0da7be92b381c6cdc1069486bc83a2974d (patch)
treed68e1703030582be68c956ef6bb455229e44581b /src/org/traccar/Context.java
parent5193bd866734b6fea1bf96b5d975c52f09cbec2e (diff)
downloadtrackermap-server-da4fce0da7be92b381c6cdc1069486bc83a2974d.tar.gz
trackermap-server-da4fce0da7be92b381c6cdc1069486bc83a2974d.tar.bz2
trackermap-server-da4fce0da7be92b381c6cdc1069486bc83a2974d.zip
Revert "initial flespi integtation: pulling messages from flespi channels and updating devices' position"
This reverts commit 5193bd866734b6fea1bf96b5d975c52f09cbec2e.
Diffstat (limited to 'src/org/traccar/Context.java')
-rw-r--r--src/org/traccar/Context.java21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java
index e582c5256..3b24c6460 100644
--- a/src/org/traccar/Context.java
+++ b/src/org/traccar/Context.java
@@ -21,9 +21,6 @@ import com.ning.http.client.AsyncHttpClient;
import java.net.InetAddress;
import java.net.UnknownHostException;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
import java.util.Properties;
import org.apache.velocity.app.VelocityEngine;
@@ -46,7 +43,6 @@ import org.traccar.database.StatisticsManager;
import org.traccar.database.UsersManager;
import org.traccar.events.MotionEventHandler;
import org.traccar.events.OverspeedEventHandler;
-import org.traccar.flespi.FlespiClient;
import org.traccar.geocoder.BingMapsGeocoder;
import org.traccar.geocoder.FactualGeocoder;
import org.traccar.geocoder.GeocodeFarmGeocoder;
@@ -267,12 +263,6 @@ public final class Context {
config.getDouble("event.motion.speedThreshold", 0.01));
}
- private final static List<FlespiClient> flespiClients = new ArrayList<>();
-
- public static List<FlespiClient> getFlespiClients() {
- return flespiClients;
- }
-
public static void init(String[] arguments) throws Exception {
config = new Config();
@@ -421,17 +411,6 @@ public final class Context {
smppClient = new SmppClient();
}
- if (config.getBoolean("flespi.enable")) {
- String uri = config.getString("flespi.url");
- String token = config.getString("flespi.token");
- String channelIds = config.getString("flespi.channel.ids");
- List<String> ids = Arrays.asList(channelIds.split(","));
- if (uri != null && token != null) {
- for (String channelId : ids) {
- flespiClients.add(new FlespiClient(uri, token, channelId));
- }
- }
- }
}
public static void init(IdentityManager testIdentityManager) {