From 635161d8f513391886823eb0c662a467aa600d81 Mon Sep 17 00:00:00 2001 From: ayyoob Date: Wed, 10 Jun 2015 22:29:59 +0530 Subject: [PATCH] added arduino device type --- modules/distribution/pom.xml | 28 +++++++++++++++++++ modules/distribution/src/assembly/bin.xml | 19 +++++++------ .../conf/datasources/master-datasources.xml | 21 ++++++++++++++ pom.xml | 5 ++++ 4 files changed, 64 insertions(+), 9 deletions(-) diff --git a/modules/distribution/pom.xml b/modules/distribution/pom.xml index 148b7888..de2bed56 100644 --- a/modules/distribution/pom.xml +++ b/modules/distribution/pom.xml @@ -315,6 +315,34 @@ + + + create-arduino-schema + package + + run + + + + + + + + + + + + + + + + + + + + + + create-raspberrypi-schema diff --git a/modules/distribution/src/assembly/bin.xml b/modules/distribution/src/assembly/bin.xml index 3531ee41..300f2ef1 100644 --- a/modules/distribution/src/assembly/bin.xml +++ b/modules/distribution/src/assembly/bin.xml @@ -26,7 +26,7 @@ **/client-truststore.jks **/wso2carbon.jks **/WSO2AM_DB.h2.db - **/FireAlarmDM_DB.h2.db + **/WSO2DM_DB.h2.db **/conf/axis2/axis2_client.xml **/conf/etc/launch.ini @@ -279,6 +279,7 @@ devicecloud.war firealarm.war + arduino.war sensebot.war raspberrypi.war digitaldisplay.war @@ -634,14 +635,14 @@ 644 - - - target/wso2carbon-core-${carbon.kernel.version}/repository/database/FireAlarmDM_DB.h2.db - - ${pom.artifactId}-${pom.version}/repository/database - FireAlarmDM_DB.h2.db - 644 - + + + + + + + + diff --git a/modules/distribution/src/repository/conf/datasources/master-datasources.xml b/modules/distribution/src/repository/conf/datasources/master-datasources.xml index 602de15b..c4804ff1 100755 --- a/modules/distribution/src/repository/conf/datasources/master-datasources.xml +++ b/modules/distribution/src/repository/conf/datasources/master-datasources.xml @@ -119,6 +119,27 @@ + + ArduinoDM_DS + The datasource used for Arduino database + + jdbc/FireAlarmDM_DB + + + + jdbc:h2:repository/database/ArduinoDM_DB;DB_CLOSE_ON_EXIT=FALSE + wso2carbon + wso2carbon + org.h2.Driver + 50 + 60000 + true + SELECT 1 + 30000 + + + + SensebotDM_DS The datasource used for Sensebot database diff --git a/pom.xml b/pom.xml index 572a1ef2..032f35fa 100644 --- a/pom.xml +++ b/pom.xml @@ -367,6 +367,11 @@ org.wso2.carbon.device.mgt.iot.firealarm.impl ${carbon.iot.device.mgt.version} + + org.wso2.carbon.iot + org.wso2.carbon.device.mgt.iot.arduino.impl + ${carbon.iot.device.mgt.version} + org.wso2.carbon.iot org.wso2.carbon.device.mgt.iot.digitaldisplay.impl