aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/flespi/ChannelPullTask.java
diff options
context:
space:
mode:
authornamo <namo@gurtam.com>2017-10-13 16:03:25 +0300
committernamo <namo@gurtam.com>2017-10-13 16:06:22 +0300
commit5193bd866734b6fea1bf96b5d975c52f09cbec2e (patch)
treecfac8050c31aec4d9c289f74b66f146acacd865c /src/org/traccar/flespi/ChannelPullTask.java
parente876250991faccdca04a1f36ddaf847c9f392275 (diff)
downloadtrackermap-server-5193bd866734b6fea1bf96b5d975c52f09cbec2e.tar.gz
trackermap-server-5193bd866734b6fea1bf96b5d975c52f09cbec2e.tar.bz2
trackermap-server-5193bd866734b6fea1bf96b5d975c52f09cbec2e.zip
initial flespi integtation: pulling messages from flespi channels and updating devices' position
Diffstat (limited to 'src/org/traccar/flespi/ChannelPullTask.java')
-rw-r--r--src/org/traccar/flespi/ChannelPullTask.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/org/traccar/flespi/ChannelPullTask.java b/src/org/traccar/flespi/ChannelPullTask.java
new file mode 100644
index 000000000..5e5525ec9
--- /dev/null
+++ b/src/org/traccar/flespi/ChannelPullTask.java
@@ -0,0 +1,15 @@
+package org.traccar.flespi;
+
+public class ChannelPullTask implements Runnable {
+
+ private final FlespiClient flespiClient;
+
+ protected ChannelPullTask(FlespiClient flespiClient) {
+ this.flespiClient = flespiClient;
+ }
+
+ @Override
+ public void run() {
+ flespiClient.channelPull();
+ }
+}