aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/web
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-08-01 00:57:43 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-08-01 00:57:43 +1200
commite99ce88d9ea0ab3d2ae0a039e27ebe0029508092 (patch)
tree5842006d1e83d582a3b066b6c9c5f0afbddfa125 /src/org/traccar/web
parentc07721bbf4b360a0173803d429d910e7932ecf6f (diff)
downloadtraccar-server-e99ce88d9ea0ab3d2ae0a039e27ebe0029508092.tar.gz
traccar-server-e99ce88d9ea0ab3d2ae0a039e27ebe0029508092.tar.bz2
traccar-server-e99ce88d9ea0ab3d2ae0a039e27ebe0029508092.zip
Fix some commands issues
Diffstat (limited to 'src/org/traccar/web')
-rw-r--r--src/org/traccar/web/CommandServlet.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/web/CommandServlet.java b/src/org/traccar/web/CommandServlet.java
index 049a0534d..f638520ec 100644
--- a/src/org/traccar/web/CommandServlet.java
+++ b/src/org/traccar/web/CommandServlet.java
@@ -5,8 +5,8 @@ import javax.json.JsonObject;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.traccar.Context;
-import org.traccar.model.Command;
import org.traccar.database.ActiveDevice;
+import org.traccar.model.Command;
public class CommandServlet extends BaseServlet {
@@ -36,7 +36,7 @@ public class CommandServlet extends BaseServlet {
private void send(HttpServletRequest req, HttpServletResponse resp) throws Exception {
Command command = JsonConverter.objectFromJson(req.getReader(), new Command());
- getActiveDevice(command.getDeviceId()).write(command);
+ getActiveDevice(command.getDeviceId()).sendCommand(command);
sendResponse(resp.getWriter(), true);
}