From 74edcfe30709bbe63ef211b74c91a6ac36af35d5 Mon Sep 17 00:00:00 2001 From: lasantha Date: Thu, 22 Jun 2017 11:57:16 +0530 Subject: [PATCH] Adding table name into constant file --- .../impl/constants/AndroidSenseConstants.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.api/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/service/impl/constants/AndroidSenseConstants.java b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.api/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/service/impl/constants/AndroidSenseConstants.java index 9aafb4eea..728aaf178 100644 --- a/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.api/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/service/impl/constants/AndroidSenseConstants.java +++ b/components/device-types/androidsense-plugin/org.wso2.carbon.device.mgt.iot.androidsense.api/src/main/java/org/wso2/carbon/device/mgt/iot/androidsense/service/impl/constants/AndroidSenseConstants.java @@ -23,7 +23,6 @@ public class AndroidSenseConstants { //Android Sensor names public static final String SENSOR_ACCELEROMETER = "accelerometer"; public static final String SENSOR_BATTERY = "battery"; - public static final String SENSOR_GPS = "gps"; public static final String SENSOR_GRAVITY = "gravity"; public static final String SENSOR_GYROSCOPE = "gyroscope"; public static final String SENSOR_LIGHT = "light"; @@ -31,7 +30,18 @@ public class AndroidSenseConstants { public static final String SENSOR_PRESSURE = "pressure"; public static final String SENSOR_PROXIMITY = "proximity"; public static final String SENSOR_ROTATION = "rotation"; - public static final String SENSOR_WORDCOUNT = "wordcounter"; + + //Android Sensor table names + public static final String SENSOR_ACCELEROMETER_TABLE = "IOT_PER_DEVICE_STREAM_ANDROID_ACCELEROMETER_STATS"; + public static final String SENSOR_BATTERY_TABLE = "IOT_PER_DEVICE_STREAM_ANDROID_BATTERY_STATS"; + public static final String SENSOR_GRAVITY_TABLE = "IOT_PER_DEVICE_STREAM_ANDROID_GRAVITY_STATS"; + public static final String SENSOR_GYROSCOPE_TABLE = "IOT_PER_DEVICE_STREAM_ANDROID_GYROSCOPE_STATS"; + public static final String SENSOR_LIGHT_TABLE = "IOT_PER_DEVICE_STREAM_ANDROID_LIGHT_STATS"; + public static final String SENSOR_MAGNETIC_TABLE = "IOT_PER_DEVICE_STREAM_ANDROID_MAGNETIC_STATS"; + public static final String SENSOR_PRESSURE_TABLE = "IOT_PER_DEVICE_STREAM_ANDROID_PRESSURE_STATS"; + public static final String SENSOR_PROXIMITY_TABLE = "IOT_PER_DEVICE_STREAM_ANDROID_PROXIMITY_STATS"; + public static final String SENSOR_ROTATION_TABLE = "IOT_PER_DEVICE_STREAM_ANDROID_ROTATION_STATS"; + //MQTT Subscribe topic //mqtt tranport related constants