Refactor product device cloud

application-manager-new
ayyoob 10 years ago
parent bf6b4bcb31
commit 52200f68e0

@ -277,7 +277,27 @@
</directory> </directory>
<outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps</outputDirectory> <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps</outputDirectory>
<includes> <includes>
<include>iotdevices.war</include> <include>firealarm.war</include>
</includes>
</fileSet>
<fileSet>
<directory>
../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps
</directory>
<outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps</outputDirectory>
<includes>
<include>sensebot.war</include>
</includes>
</fileSet>
<fileSet>
<directory>
../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps
</directory>
<outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps</outputDirectory>
<includes>
<include>devicecloud.war</include>
</includes> </includes>
</fileSet> </fileSet>

@ -41,7 +41,7 @@ if (uriMatcher.match("/{context}/api/device/sketch/")) {
exit(); exit();
} }
fireAlarmManagerService = carbonHttpsServletTransport + "/iotdevices/FireAlarmManager"; fireAlarmManagerService = carbonHttpsServletTransport + "/firealarm/manager";
sketchDownloadEndPoint = fireAlarmManagerService + "/downloadSketch"; sketchDownloadEndPoint = fireAlarmManagerService + "/downloadSketch";
response.sendRedirect(sketchDownloadEndPoint + "?type="+sketchType+"&owner="+user.username); response.sendRedirect(sketchDownloadEndPoint + "?type="+sketchType+"&owner="+user.username);
exit(); exit();
@ -57,7 +57,7 @@ if (uriMatcher.match("/{context}/api/devices/")) {
exit(); exit();
} }
devicesManagerService = carbonHttpsServletTransport + "/iotdevices/DevicesManager"; devicesManagerService = carbonHttpsServletTransport + "/devicecloud/manager";
listAllDevicesEndPoint = devicesManagerService + "/getDevices"; listAllDevicesEndPoint = devicesManagerService + "/getDevices";
var data = {}; var data = {};

@ -33,7 +33,7 @@ if (uriMatcher.match("/{context}/api/device/sketch/")) {
sketchType = request.getParameter("type"); sketchType = request.getParameter("type");
if(!sketchType){log.error("Sketch Type is empty");} if(!sketchType){log.error("Sketch Type is empty");}
senseBotManagerService = "http://localhost:9763/iotdevices/SenseBotManager"; senseBotManagerService = "http://localhost:9763/sensebot/manager";
sketchDownloadEndPoint = senseBotManagerService + "/downloadSketch"; sketchDownloadEndPoint = senseBotManagerService + "/downloadSketch";
response.sendRedirect(sketchDownloadEndPoint + "?type="+sketchType+"&owner=anonymous"); response.sendRedirect(sketchDownloadEndPoint + "?type="+sketchType+"&owner=anonymous");
exit(); exit();

@ -30,7 +30,7 @@
#define END_JSON "\"}" #define END_JSON "\"}"
#define SERVICE_PORT 9763 #define SERVICE_PORT 9763
#define SERVICE_EPOINT "/iotdevices/FireAlarmController/" #define SERVICE_EPOINT "/firealarm/controller/"
// pushalarmdata - application/json - {"owner":"","deviceId":"","replyMessage":"","time":"","key":"","value":""} // pushalarmdata - application/json - {"owner":"","deviceId":"","replyMessage":"","time":"","key":"","value":""}
// readcontrols/{owner}/{deviceId} // readcontrols/{owner}/{deviceId}
// reply - application/json - {"owner":"","deviceId":"","replyMessage":""} // reply - application/json - {"owner":"","deviceId":"","replyMessage":""}

@ -26,7 +26,7 @@
#define SERVICE_PORT 9763 #define SERVICE_PORT 9763
#define SERVICE_EPOINT "/iotdevices/FireAlarmController/" #define SERVICE_EPOINT "/firealarm/controller/"
// pushalarmdata - application/json - {"owner":"","deviceId":"","replyMessage":"","time":"","key":"","value":""} // pushalarmdata - application/json - {"owner":"","deviceId":"","replyMessage":"","time":"","key":"","value":""}
// readcontrols/{owner}/{deviceId} // readcontrols/{owner}/{deviceId}
// reply - application/json - {"owner":"","deviceId":"","replyMessage":""} // reply - application/json - {"owner":"","deviceId":"","replyMessage":""}

Loading…
Cancel
Save