Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
97:5cf6ab71dcd0
Parent:
96:807f04bd5256
Child:
131:a290a3934132
--- a/src/ConfigurationHandler/Controls/ManualControl.h	Wed Sep 21 12:54:41 2016 +0000
+++ b/src/ConfigurationHandler/Controls/ManualControl.h	Wed Sep 21 16:17:12 2016 +0000
@@ -16,14 +16,21 @@
 private:
     string          controlFile;        // name of the control file
     string          id;                 // identifier
+    string          output;             // output 
     unsigned int    type;               // timed, continuous, setpoint
     unsigned int    priority;           // control priority
     unsigned int    duration;
     float           setpoint;
-    enum State { OFF = 0, ON = 1 } ;   
-    State           state;
+    unsigned int    state;              // ON or OFF
     unsigned int    percent;            // analog/manual value
     
+    enum State {
+        STATE_STARTUP,
+        STATE_CONTROL_ON,
+        STATE_CONTROL_OFF
+    };
+    State           currentState;
+    
 public:
     ManualControl() {};
     ~ManualControl() {
@@ -35,10 +42,11 @@
         return controlFile;
     }
     
-    int start(void);
-    int update(void);
-    int unregisterControl();
-    void display(void);
+    void    start(void);
+    int     update(void);
+    int     triggerOutput(void);
+    int     unregisterControl();
+    void    display(void);
 };
 
 #endif