mirror of
https://repository.entgra.net/community/product-iots.git
synced 2025-09-16 23:32:19 +00:00
few changes in event recievers and remove type and method from feature
This commit is contained in:
parent
e5d5afa9a0
commit
d0183deb2a
@ -17,17 +17,16 @@
|
|||||||
~ under the License.
|
~ under the License.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<eventReceiver name="EventReceiver_ConnectedCup" statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventreceiver">
|
<eventReceiver name="connectedcup_reciever" statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventreceiver">
|
||||||
<from eventAdapterType="oauth-mqtt">
|
<from eventAdapterType="oauth-mqtt">
|
||||||
<property name="topic">wso2/carbon.super/connectedcup/#</property>
|
<property name="topic">carbon.super/connectedcup/#</property>
|
||||||
<property name="username">admin</property>
|
<property name="username">admin</property>
|
||||||
<property name="contentValidationParams">device_id_json_path:event.metaData.deviceId,device_id_topic_hierarchy_index:3</property>
|
<property name="contentValidationParams">device_id_json_path:event.metaData.deviceId,device_id_topic_hierarchy_index:3</property>
|
||||||
<property name="contentValidation">default</property>
|
<property name="contentValidation">org.wso2.carbon.device.mgt.iot.input.adapter.mqtt.util.MQTTContentValidator</property>
|
||||||
<property name="dcrUrl">https://localhost:9443/dynamic-client-web/register</property>
|
<property name="dcrUrl">https://localhost:${carbon.https.port}/dynamic-client-web/register</property>
|
||||||
<property name="url">tcp://localhost:1883</property>
|
<property name="url">tcp://${mqtt.broker.host}:${mqtt.broker.port}</property>
|
||||||
<property name="cleanSession">true</property>
|
<property name="cleanSession">true</property>
|
||||||
</from>
|
</from>
|
||||||
<mapping customMapping="disable" type="json"/>
|
<mapping customMapping="disable" type="json"/>
|
||||||
<to streamName="org.wso2.iot.connectedcup" version="1.0.0"/>
|
<to streamName="org.wso2.iot.connectedcup" version="1.0.0"/>
|
||||||
</eventReceiver>
|
</eventReceiver>
|
||||||
|
|
||||||
@ -20,7 +20,7 @@
|
|||||||
<artifacts>
|
<artifacts>
|
||||||
<artifact name="ConnectedCup_CAPP" version="1.0.0" type="carbon/application">
|
<artifact name="ConnectedCup_CAPP" version="1.0.0" type="carbon/application">
|
||||||
<dependency artifact="EventStream_ConnectedCup" version="1.0.0" include="true" serverRole="DataAnalyticsServer"/>
|
<dependency artifact="EventStream_ConnectedCup" version="1.0.0" include="true" serverRole="DataAnalyticsServer"/>
|
||||||
<dependency artifact="EventReceiver_ConnectedCup" version="1.0.0" include="true" serverRole="DataAnalyticsServer"/>
|
<dependency artifact="connectedcup_reciever" version="1.0.0" include="true" serverRole="DataAnalyticsServer"/>
|
||||||
<dependency artifact="EventPublisher_ConnectedCup" version="1.0.0" include="true" serverRole="DataAnalyticsServer"/>
|
<dependency artifact="EventPublisher_ConnectedCup" version="1.0.0" include="true" serverRole="DataAnalyticsServer"/>
|
||||||
<dependency artifact="EventExecution_ConnectedCup" version="1.0.0" include="true" serverRole="DataAnalyticsServer"/>
|
<dependency artifact="EventExecution_ConnectedCup" version="1.0.0" include="true" serverRole="DataAnalyticsServer"/>
|
||||||
</artifact>
|
</artifact>
|
||||||
|
|||||||
@ -39,8 +39,7 @@ public interface ConnectedCupControllerService {
|
|||||||
|
|
||||||
@Path("device/ordercoffee")
|
@Path("device/ordercoffee")
|
||||||
@POST
|
@POST
|
||||||
@Feature(code = "ordercoffee", name = "Order Coffee", type = "control",
|
@Feature(code = "ordercoffee", name = "Order Coffee", description = "Order coffee cup")
|
||||||
description = "Order coffee cup")
|
|
||||||
Response orderCoffee(@QueryParam("deviceId") String deviceId);
|
Response orderCoffee(@QueryParam("deviceId") String deviceId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user