Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
48:1c7861d80d16
Parent:
45:3b9e1923cb15
Child:
50:6924b1a2c769
Child:
51:66b820f203a5
--- a/src/main.cpp	Tue Sep 13 12:05:17 2016 +0000
+++ b/src/main.cpp	Tue Sep 13 16:00:45 2016 +0000
@@ -15,6 +15,7 @@
 #include "BLEDataHandler.h"
 #include "LoRaInit.h"
 #include "ControlTask.h"
+#include "OutputTask.h"
 #include "CloudDataHandler.h"
 
 // main thread identifier (for signaling)
@@ -37,6 +38,7 @@
 Thread *GLOBAL_CDH_thread = NULL;
 Thread *GLOBAL_configHandler_thread = NULL;
 Thread *GLOBAL_controlTask_thread = NULL;
+Thread *GLOBAL_outputTask_thread = NULL;
 
 // store modbus register information
 std::map<std::string,ModbusRegister> ModbusRegisterMap;
@@ -75,6 +77,7 @@
 {
     mDot *dot;
     
+    // singleton object instatiation 
     GLOBAL_mdot = dot = mDot::getInstance();
     mDotRadioInit( dot );
 
@@ -86,6 +89,7 @@
 
     // start the configuration handler
     Thread configHandler_thread(ConfigurationHandler, NULL, osPriorityNormal, 3072, NULL);
+    Thread outputTask_thread(OutputTask, NULL, osPriorityNormal, 3072, NULL); 
     Thread controlTask_thread(ControlTask); 
 
     // wait for the configuration handler to signal us
@@ -105,6 +109,7 @@
     GLOBAL_CDH_thread = & CDH_thread;
     GLOBAL_configHandler_thread = &configHandler_thread;
     GLOBAL_controlTask_thread = &controlTask_thread;
+    GLOBAL_outputTask_thread = &outputTask_thread;
 
     Thread::wait(1000);