From 20f3201f10e91244dc83baa7e7c9a780c39c174a Mon Sep 17 00:00:00 2001 From: lasantha Date: Thu, 22 Jun 2017 20:12:10 +0530 Subject: [PATCH] Adding required changes for Location Stream (geofence) --- .../Android-Sense-ExecutionPlan.siddhiql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_android_sense_executionplan/Android-Sense-ExecutionPlan.siddhiql b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_android_sense_executionplan/Android-Sense-ExecutionPlan.siddhiql index e1f7b5f5e6..3cdb2caf6e 100755 --- a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_android_sense_executionplan/Android-Sense-ExecutionPlan.siddhiql +++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.analytics/src/main/resources/carbonapps/androidsense/android_android_sense_executionplan/Android-Sense-ExecutionPlan.siddhiql @@ -29,8 +29,8 @@ define stream BatteryStream (meta_owner string, meta_deviceId string, meta_times @Export('iot.per.device.stream.android.sms:1.0.0') define stream SmsStream (meta_owner string, meta_deviceId string, meta_timestamp long, number string, type string, body string); -@Export('org.wso2.geo.LocationStream:1.0.0') -define stream geoLocationStream (id string, timeStamp long, latitude double, longitude double, type string, speed float, heading float); +@Export('org.wso2.iot.LocationStream:1.0.0') +define stream geoLocationStream (meta_deviceId string, meta_deviceType string, timeStamp long, latitude double, longitude double); @Export('iot.per.device.stream.android.accelerometer:1.0.0') define stream AccelerometerStream (meta_owner string, meta_deviceId string, meta_timestamp long, axis string, value float); @@ -153,5 +153,5 @@ select meta_owner, meta_deviceId, meta_timestamp, data_type as type, data_receiv insert into DataStream; from AndroidSense[meta_type == 'gps'] -select meta_deviceId as id, meta_timestamp as timeStamp, gps_lat as latitude, gps_long as longitude, "android_sense" as type, speed_limit as speed, 0.0f as heading +select meta_deviceId ,meta_type as meta_deviceType, meta_timestamp as timeStamp, gps_lat as latitude, gps_long as longitude insert into geoLocationStream; \ No newline at end of file