Machine Vision Status TCP Server

Dependencies:   C12832 EthernetInterface mbed-rtos mbed ConfigFile

Revision:
5:7a32c081a3fa
Parent:
4:339a85b66476
Child:
7:23c8d34000eb
diff -r 339a85b66476 -r 7a32c081a3fa TcpDaemon.h
--- a/TcpDaemon.h	Wed Mar 11 10:26:35 2015 +0000
+++ b/TcpDaemon.h	Wed Mar 11 12:11:23 2015 +0000
@@ -4,10 +4,15 @@
 #include "mbed.h"
 #include "EthernetInterface.h"
 #include "ExternalTrigger.h"
+#include "StatusIndicator.h"
 
 #define MAX_BACKLOG 1
 #define TRIGGER_MSG "TRIGGER\r\n"
 
+#define STR_FAIL "FAIL\r\n"
+#define STR_OK "OK\r\n"
+#define STR_CLEAR "CLEAR\r\n"
+
 namespace MachineVision{
     
     class TcpDaemon{
@@ -29,6 +34,9 @@
             DigitalOut receive_led;
             
             ExternalTrigger trigger;
+            
+            // Status Indicator
+            StatusIndicator * status_indicator;
 
         public:
             /*
@@ -36,7 +44,7 @@
              *
              * @server_port the port the daemon will be listening on
              */
-            TcpDaemon(int server_port, PinName accept_led_pin, PinName receive_led_pin, PinName trigger_pin);
+            TcpDaemon(int server_port, PinName accept_led_pin, PinName receive_led_pin, PinName trigger_pin, StatusIndicator * indicator);
 
             /*
              * Make the daemon start listening for incoming connections