diff --git a/components/device-types/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm.agent.advanced.impl/src/main/resources/cep_query.txt b/components/device-types/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm.agent.advanced.impl/src/main/resources/cep_query.txt index 17546ece2..01f6f7d31 100644 --- a/components/device-types/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm.agent.advanced.impl/src/main/resources/cep_query.txt +++ b/components/device-types/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm.agent.advanced.impl/src/main/resources/cep_query.txt @@ -1,5 +1,5 @@ define stream fireAlarmEventStream (deviceID string, temp int); -from fireAlarmEventStream#window.time(7886776 sec) +from fireAlarmEventStream#window.time(10 sec) select deviceID, max(temp) as maxValue group by deviceID insert into analyzeStream for expired-events; @@ -8,4 +8,4 @@ select maxValue insert into bulbOnStream; from fireAlarmEventStream[temp > 1093] select deviceID, temp -insert into bulbOffStream; \ No newline at end of file +insert into bulbOffStream;