diff --git a/directory_server/register.js b/directory_server/register.js index 567e965..0fd9e23 100644 --- a/directory_server/register.js +++ b/directory_server/register.js @@ -1,11 +1,12 @@ -//var baseurl = "http://10.0.0.3:8080"; -//var url = "10.0.0.3"; +var baseurl = "http://10.0.0.3:8080"; +var url = "10.0.0.3"; + //var baseurl = "http://10.251.38.229:8080"; //var url = "10.251.38.229"; //var baseurl = "http://10.251.43.162:8080"; //var url = "10.251.43.162"; -var baseurl = "http://192.168.1.2:8080"; -var url = "192.168.1.2"; +//var baseurl = "http://192.168.1.2:8080"; +//var url = "192.168.1.2"; $.ajax({"url":baseurl + "/ls"}).done(function (data) { diff --git a/frontend/apps/droneApp.js b/frontend/apps/droneApp.js index 89f12f1..ca363f4 100644 --- a/frontend/apps/droneApp.js +++ b/frontend/apps/droneApp.js @@ -3,7 +3,7 @@ function app(){ id:"start", text: 'takeoff', click: function () { - ROT.writeTag("drone", "start", function(data){ + ROT.writeTag("eva", "start", function(data){ console.log("wrote data to drone"); }); } @@ -14,7 +14,7 @@ function app(){ id:"stop", text: 'land', click: function () { - ROT.writeTag("drone", "stop", function(data){ + ROT.writeTag("eva", "stop", function(data){ console.log("wrote data to drone "); }); } diff --git a/frontend/lib/rot.js b/frontend/lib/rot.js index 712f54b..59a30b2 100755 --- a/frontend/lib/rot.js +++ b/frontend/lib/rot.js @@ -4,7 +4,8 @@ var ROT = {}; //var baseurl = "http://10.0.0.3:8080"; //var baseurl = "http://10.251.38.229:8080"; //var baseurl = "http://10.251.43.162:8080"; -var baseurl = "http://192.168.1.2:8080"; +//var baseurl = "http://192.168.1.2:8080"; +var baseurl = "http://10.0.0.3:8080"; var allUuids = []; var allThings = {}; var allFeatures = {} diff --git a/slave/config.json b/slave/config.json index 464c0c9..e3f9e21 100755 --- a/slave/config.json +++ b/slave/config.json @@ -1,5 +1,5 @@ { - "directoryServer": "http://192.168.1.2:8080", + "directoryServer": "http://10.0.0.3:8080", "tagFile":"/tmp/tags.json", "port":3000, "proxyport":3000, @@ -15,7 +15,7 @@ "photocell":{"url":"http://localhost:4444"}, "webiopi":{"url":"http://localhost:4545"}, "some_drone":{"url":"http://192.168.1.2:7777"}, - "some_robot":{"url":"http://192.168.1.3:7777"} + "some_robot":{"url":"http://10.0.0.10:7777"} diff --git a/slave/deviceServers/evaServer.js b/slave/deviceServers/evaServer.js index 70cf50d..c9d3e64 100644 --- a/slave/deviceServers/evaServer.js +++ b/slave/deviceServers/evaServer.js @@ -54,9 +54,9 @@ function step() { } , 200); } -var run = 0; -run = setInterval(step, 2500); -var port = 7777; + +var run = setInterval(step, 2500); +var port = 7777; console.log("listening on port: ", port); var app = express(); @@ -82,9 +82,11 @@ app.put("/", function(req, res){ console.log("Hello human. I am EVA"); } if (req.text === "start") { + count = 0; run = setInterval(step, 2500); } if (req.text === "stop") { + count = 0; clearInterval(run); } });