Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed
Fork of ICE by
Diff: src/main.cpp
- Revision:
- 35:6235ef67faa1
- Parent:
- 34:f345fdec711d
- Child:
- 45:3b9e1923cb15
--- a/src/main.cpp Thu Sep 08 22:01:00 2016 +0000 +++ b/src/main.cpp Fri Sep 09 13:33:54 2016 +0000 @@ -50,7 +50,7 @@ *****************************************************************************/ static void banner( void ) { - printf("\n\n\r\nWelcome to Project: ICE v0.0.2\n"); + printf("\n\n\r\nWelcome to Project: ICE v0.0.35\n"); printf("\rThe Intelligent Connected Experience\n"); printf("\rCopyright 2016 Nalco Water, an Ecolab Company\n"); @@ -78,7 +78,6 @@ GLOBAL_mdot = dot = mDot::getInstance(); mDotRadioInit( dot ); - // for signaling from the configuration handler mainThreadId = osThreadGetId(); @@ -86,7 +85,7 @@ printf("\rMultiTech mDot library version: %s\n", dot->getId().c_str()); // start the configuration handler - Thread configHandler_thread(ConfigurationHandler, 0, osPriorityNormal, 3000, NULL); + Thread configHandler_thread(ConfigurationHandler, NULL, osPriorityNormal, 3072, NULL); Thread controlTask_thread(ControlTask); // wait for the configuration handler to signal us @@ -97,13 +96,13 @@ Thread analyticsLoggerThread(AnalyticsLogger); Thread modbusMaster_thread(ModbusMaster); Thread BLE_thread(BLEDataHandler); - Thread CDH_thread(CloudDataHandler, 0, osPriorityNormal, 3000, NULL); + Thread CDH_thread(CloudDataHandler, NULL, osPriorityNormal, 3072, NULL); + // assign globals GLOBAL_analyticsLogger_thread = &analyticsLoggerThread; GLOBAL_modbusMaster_thread = &modbusMaster_thread; GLOBAL_BLE_thread = & BLE_thread; GLOBAL_CDH_thread = & CDH_thread; - GLOBAL_configHandler_thread = &configHandler_thread; GLOBAL_controlTask_thread = &controlTask_thread; @@ -119,5 +118,4 @@ // start the command shell ntshell_execute(&ntshell, func_read, func_write, func_cb_ntshell); - } \ No newline at end of file