Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
94:18ae2fd82638
Parent:
86:189c125d8878
Child:
95:42f92b03f1b8
--- a/src/OutputTask/OutputTask.cpp	Tue Sep 20 19:31:38 2016 +0000
+++ b/src/OutputTask/OutputTask.cpp	Tue Sep 20 19:47:04 2016 +0000
@@ -7,6 +7,7 @@
 #include "OutputTask.h"
 #include "global.h"
 #include "MbedJSONValue.h"
+#include "ModbusMasterApi.h"
 #include <vector>
 #include <string>
 #include <algorithm>
@@ -133,8 +134,7 @@
             // a control is tied to this output
             printf("\r%s: %s is controlling %s\n",
                    __func__, pos->second.begin()->getId().c_str(), pos->first.c_str());
-            // TODO: send a message to the modbus master of who's in control
-            // foo(pos->second->getId().c_str();
+            ModbusMasterWriteRegister(pos->first, pos->second.begin()->getState());
         }
     }
 }