|
|
|
@ -19,12 +19,13 @@
|
|
|
|
|
|
|
|
|
|
<eventReceiver name="temperature-mqtt" statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventreceiver">
|
|
|
|
|
<from eventAdapterType="oauth-mqtt">
|
|
|
|
|
<property name="topic">wso2/carbon.super/+/+/temperature</property>
|
|
|
|
|
<property name="topic">wso2/carbon.super/raspberrypi/+/temperature</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="contentValidation">default</property>
|
|
|
|
|
<property name="dcrUrl">https://localhost:9443/dynamic-client-web/register</property>
|
|
|
|
|
<property name="url">tcp://localhost:1883</property>
|
|
|
|
|
<property name="dcrUrl">https://${server.host}:${mgt.transport.https.port}/dynamic-client-web/register</property>
|
|
|
|
|
<property name="clientId">temperatureMqttClient</property>
|
|
|
|
|
<property name="url">tcp://${mqtt.broker.host}:${mqtt.broker.port}</property>
|
|
|
|
|
<property name="cleanSession">true</property>
|
|
|
|
|
</from>
|
|
|
|
|
<mapping customMapping="disable" type="json"/>
|
|
|
|
|