diff options
Diffstat (limited to 'src/org/traccar/web')
-rw-r--r-- | src/org/traccar/web/CommandServlet.java | 4 |
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); } |