Refactor product device cloud

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

@ -277,7 +277,27 @@
</directory>
<outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps</outputDirectory>
<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>
</fileSet>

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

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

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

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

Loading…
Cancel
Save