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:
7:dd5bf173b5e6
Parent:
5:e22a1ae893d2
Child:
8:d21d3b67fbb2
--- a/libMotiv/Controller.h	Tue Jan 06 22:18:27 2015 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,74 +0,0 @@
-#ifndef MOTIV_CONTROLLER_H
-#define MOTIV_CONTROLLER_H
-
-//Controller
-#include <string>
-#include "mbed.h"
-#include "MotiVAPI.h"
-#include "Device.h"
-#include "Flower.h"
-#include "Table.h"
-#include "picojson.h"
-#include "EthernetInterface.h"
-#include "HTTPClient.h"
-#include <stdlib.h>
-#include <vector>
-
-class Controller {
-public:
-    enum cStatus {
-        READY,
-        WAITING,
-        BUSY,
-        ERROR,
-        INIT
-    };
-    Controller();
-    Controller(TextLCD *lcd);
-//    Controller(TextLCD *lcd, EthernetInterface *eth);
-    Controller& operator=(const Controller& c);
-    
-    
-    void init();
-    void testRequest();
-    cStatus getStatus();
-    string statusString();
-    void setStatus(cStatus);
-    void displayStatus();
-    
-    void lcdWriteLine(int row, string str);
-    void printDesc(int c);
-    
-    //DEMO PURPOSES
-    void nextCommand(); 
-    void prevCommand();
-    void sendCommandDem();
-    
-    //DEBUG
-    void printCommandList();
-    
-    /**
-        sendCommand() gets the first command from the command list and sends the command to the devices.
-    */
-    void sendCommand();
-    
-    TextLCD *lcd;
-    MotiVAPI *mAPI;
-    
-    
-    
-    bool connectAPI();
-    
-private:
-    bool initialized;
-    cStatus status;
-    void initTables();
-    
-    HTTPClient httpClient;
-    string endpoint;
-//    std::vector<Device*> devices;
-    vector <Table>tables;
-    vector <MCommand> commandList;
-};
-
-#endif
\ No newline at end of file