reef monitor

Dependencies:   mbed-rtos EthernetInterface FatFileSystemCpp MCP23S17 SDFileSystem mbed

Fork of HTTPServerHelloWorld by Donatien Garnier

Model/Application.h

Committer:
wyunreal
Date:
2015-01-03
Revision:
12:72e0c404017a
Parent:
11:9366140ebe5f

File content as of revision 12:72e0c404017a:

#ifndef APPLICATION_H
#define APPLICATION_H

#include "HttpServer.h"
#include "WatchDogTimer.h"
#include "SDFileSystem.h"
#include "ActuatorsController.h"

class Application {
    private:
        SPI *spiHandler;
        
        WatchDogTimer* watchDog;
        HttpServer* httpServer;
        FileSystemLike* localFileSystem;
        FileSystemLike* sdFileSystem;
        ActuatorsController* actuatorsController;
        
        void setup();
        void loop();
        int isSystemOnline();
        void recoverSystem();
        void applicationReset();
        void handleFaultyResetRecovery();
    public:
        Application();
        ~Application();
        
        void run();
};

#endif