From d0183deb2ad2dffa861dff45284b51fe8e210252 Mon Sep 17 00:00:00 2001 From: ayyoob Date: Fri, 13 May 2016 02:54:21 +0530 Subject: [PATCH] few changes in event recievers and remove type and method from feature --- .../EventReceiver_ConnectedCup.xml | 13 ++++++------- .../resources/carbonapps/ConnectedCup/artifacts.xml | 2 +- .../api/ConnectedCupControllerService.java | 3 +-- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/ConnectedCup/EventReceiver_ConnectedCup_1.0.0/EventReceiver_ConnectedCup.xml b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/ConnectedCup/EventReceiver_ConnectedCup_1.0.0/EventReceiver_ConnectedCup.xml index 94c1c435..6dbe5218 100644 --- a/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/ConnectedCup/EventReceiver_ConnectedCup_1.0.0/EventReceiver_ConnectedCup.xml +++ b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/ConnectedCup/EventReceiver_ConnectedCup_1.0.0/EventReceiver_ConnectedCup.xml @@ -17,17 +17,16 @@ ~ under the License. --> - + - wso2/carbon.super/connectedcup/# + carbon.super/connectedcup/# admin device_id_json_path:event.metaData.deviceId,device_id_topic_hierarchy_index:3 - default - https://localhost:9443/dynamic-client-web/register - tcp://localhost:1883 + org.wso2.carbon.device.mgt.iot.input.adapter.mqtt.util.MQTTContentValidator + https://localhost:${carbon.https.port}/dynamic-client-web/register + tcp://${mqtt.broker.host}:${mqtt.broker.port} true - - + \ No newline at end of file diff --git a/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/ConnectedCup/artifacts.xml b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/ConnectedCup/artifacts.xml index 86306d71..a4c1a87e 100644 --- a/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/ConnectedCup/artifacts.xml +++ b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/ConnectedCup/artifacts.xml @@ -20,7 +20,7 @@ - + diff --git a/modules/samples/connectedcup/component/api/src/main/java/org/coffeeking/api/ConnectedCupControllerService.java b/modules/samples/connectedcup/component/api/src/main/java/org/coffeeking/api/ConnectedCupControllerService.java index f89a405e..a41d44e2 100644 --- a/modules/samples/connectedcup/component/api/src/main/java/org/coffeeking/api/ConnectedCupControllerService.java +++ b/modules/samples/connectedcup/component/api/src/main/java/org/coffeeking/api/ConnectedCupControllerService.java @@ -39,8 +39,7 @@ public interface ConnectedCupControllerService { @Path("device/ordercoffee") @POST - @Feature(code = "ordercoffee", name = "Order Coffee", type = "control", - description = "Order coffee cup") + @Feature(code = "ordercoffee", name = "Order Coffee", description = "Order coffee cup") Response orderCoffee(@QueryParam("deviceId") String deviceId); /**