#######################################################################
## build SampleApp
#######################################################################
-SConscript('SampleApp/SConscript')
\ No newline at end of file
+SConscript('SampleApp/SConscript')
+
+
+######################################################################
+# Copy description xml and deliverables
+######################################################################
+Command("SSMTesterApp","SampleApp/linux/SSMTesterApp/SSMTesterApp", Copy("$TARGET", "$SOURCE"))
+Command("SoftSensorDescription.xml", "SoftSensorPlugin/SoftSensorDescription.xml", Copy("$TARGET", "$SOURCE"))
+Command("THSensorApp","SampleApp/linux/THSensorApp/THSensorApp", Copy("$TARGET", "$SOURCE"))
+Command("THSensorApp1","SampleApp/linux/THSensorApp1/THSensorApp1", Copy("$TARGET", "$SOURCE"))
\ No newline at end of file
#build sampleapp
######################################################################
ssmtesterapp = linux_sample_env.Program('SSMTesterApp', 'src/SSMTestApp.cpp')
-Alias("SSMTesterApp", ssmtesterapp)
+Alias("ssmtesterapp_sample", ssmtesterapp)
env.AppendTarget('SSMTesterApp')
######################################################################
#build sampleapp
######################################################################
-thsensorapp1 = linux_sample_env.Program('THSensorApp', 'src/ThingResourceServer1.cpp')
+thsensorapp1 = linux_sample_env.Program('THSensorApp1', 'src/ThingResourceServer1.cpp')
Alias("thsensorapp1_sample", thsensorapp1)
env.AppendTarget('thsensorapp1_sample')
+++ /dev/null
-<softsensors>
-
- <softsensor>
- <name>DiscomfortIndexSensor</name>
- <attributes>
- <attribute>
- <name>version</name>
- <type>string</type>
- <value>1.0</value>
- </attribute>
- <attribute>
- <name>lifetime</name>
- <type>int</type>
- <value>60</value>
- </attribute>
- </attributes>
- <outputs>
- <output>
- <name>timestamp</name>
- <type>string</type>
- </output>
- <output>
- <name>temperature</name>
- <type>string</type>
- </output>
- <output>
- <name>humidity</name>
- <type>string</type>
- </output>
- <output>
- <name>discomfortIndex</name>
- <type>int</type>
- </output>
- </outputs>
- <inputs>
- <input>Thing_TempHumSensor</input>
- <input>Thing_TempHumSensor1</input>
- </inputs>
- </softsensor>
-
-</softsensors>
post_job:
@echo " "
cp -Rdp ./${RST_NAME}/lib${TARGET}.so ${OUTPUTS_DIR}/
- cp -Rdp ../../${SSXML_NAME} ${OUTPUTS_DIR}/
+ cp -Rdp ../../../${SSXML_NAME} ${OUTPUTS_DIR}/
@echo "-------------- ${TARGET} Build Successful. -------------"
@echo "Enter to ${RST_NAME} folder."
@echo " "
--- /dev/null
+<softsensors>
+
+ <softsensor>
+ <name>DiscomfortIndexSensor</name>
+ <attributes>
+ <attribute>
+ <name>version</name>
+ <type>string</type>
+ <value>1.0</value>
+ </attribute>
+ <attribute>
+ <name>lifetime</name>
+ <type>int</type>
+ <value>60</value>
+ </attribute>
+ </attributes>
+ <outputs>
+ <output>
+ <name>timestamp</name>
+ <type>string</type>
+ </output>
+ <output>
+ <name>temperature</name>
+ <type>string</type>
+ </output>
+ <output>
+ <name>humidity</name>
+ <type>string</type>
+ </output>
+ <output>
+ <name>discomfortIndex</name>
+ <type>int</type>
+ </output>
+ </outputs>
+ <inputs>
+ <input>Thing_TempHumSensor</input>
+ <input>Thing_TempHumSensor1</input>
+ </inputs>
+ </softsensor>
+
+ <softsensor>
+ <name>IndoorTrajectorySensor</name>
+ <attributes>
+ <attribute>
+ <name>version</name>
+ <type>string</type>
+ <value>1.0</value>
+ </attribute>
+ <attribute>
+ <name>lifetime</name>
+ <type>int</type>
+ <value>60</value>
+ </attribute>
+ </attributes>
+ <outputs>
+ <output>
+ <name>trackeeID</name>
+ <type>string</type>
+ </output>
+ <output>
+ <name>timeT0</name>
+ <type>string</type>
+ </output>
+ <output>
+ <name>ref01T0</name>
+ <type>string</type>
+ </output>
+ <output>
+ <name>ref02T0</name>
+ <type>string</type>
+ </output>
+ <output>
+ <name>ref03T0</name>
+ <type>string</type>
+ </output>
+ <output>
+ <name>timeT1</name>
+ <type>string</type>
+ </output>
+ <output>
+ <name>ref01T1</name>
+ <type>string</type>
+ </output>
+ <output>
+ <name>ref02T1</name>
+ <type>string</type>
+ </output>
+ <output>
+ <name>ref03T1</name>
+ <type>string</type>
+ </output>
+ </outputs>
+ <inputs>
+ <input>Tracker_Thing</input>
+ </inputs>
+ </softsensor>
+
+ <softsensor>
+ <name>ReferenceSensor</name>
+ <attributes>
+ <attribute>
+ <name>version</name>
+ <type>string</type>
+ <value>1.0</value>
+ </attribute>
+ <attribute>
+ <name>lifetime</name>
+ <type>int</type>
+ <value>60</value>
+ </attribute>
+ </attributes>
+ <outputs>
+ <output>
+ <name>macaddress</name>
+ <type>string</type>
+ </output>
+ <output>
+ <name>servicetype</name>
+ <type>string</type>
+ </output>
+ <output>
+ <name>macaddress1</name>
+ <type>string</type>
+ </output>
+ <output>
+ <name>servicetype1</name>
+ <type>string</type>
+ </output>
+ </outputs>
+ <inputs>
+ <input>Reference_Thing</input>
+ <input>Reference_Thing1</input>
+ </inputs>
+ </softsensor>
+
+</softsensors>
IOT_LOG_DIR=${IOT_BASE}/oc_logger
IOT_LIB=liboc.a
IOT_CSDK_LIB=liboctbstack.a
-IOT_LOG_LIB=liboc_logger.a
+IOT_LOG_LIB=oc_logger.a
# service folder path.
FD_SSM=${ROOT_DIR}/service/soft-sensor-manager