ControllerBox directs electromechanical equipment in restaurants to display information.

Dependencies:   TextLCD MbedJSONValue libMotiv picojson mbed-rtos mbed

Fork of Mbed_MotiVControllerBox by Tim Wöstemeier

Revision:
1:d54aed10ddf3
Parent:
0:2279181caaa1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/library/Device.h	Sat Nov 15 13:04:09 2014 +0000
@@ -0,0 +1,42 @@
+#ifndef MOTIV_DEVICE_H
+#define MOTIV_DEVICE_H
+
+#include <string>
+
+#define DELIMITER ';'
+
+//a default constructor that takes no arguments
+//a copy constructor ex: book(const &book b);
+//an overloaded assignment operato
+
+class Device
+{
+public:
+    Device();
+    Device(int id);
+    ~Device();
+
+    Device(const Device& d);
+    Device& operator=(const Device& d);
+    
+    int getId() const;
+
+//private: 
+    struct mCommand { //3 chars to be sent to the hardware
+        char id; //device id
+        char cmd; //command number
+        char val; //command specific value
+        char delim; //delimiter
+    };
+    mCommand makeCommand(int cmdId, int value);
+    
+protected:
+    
+    int id;
+
+private:
+
+
+};
+
+#endif
\ No newline at end of file