reef monitor

Dependencies:   mbed-rtos EthernetInterface FatFileSystemCpp MCP23S17 SDFileSystem mbed

Fork of HTTPServerHelloWorld by Donatien Garnier

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Application.h Source File

Application.h

00001 #ifndef APPLICATION_H
00002 #define APPLICATION_H
00003 
00004 #include "HttpServer.h"
00005 #include "WatchDogTimer.h"
00006 #include "SDFileSystem.h"
00007 #include "ActuatorsController.h"
00008 
00009 class Application {
00010     private:
00011         SPI *spiHandler;
00012         
00013         WatchDogTimer* watchDog;
00014         HttpServer* httpServer;
00015         FileSystemLike* localFileSystem;
00016         FileSystemLike* sdFileSystem;
00017         ActuatorsController* actuatorsController;
00018         
00019         void setup();
00020         void loop();
00021         int isSystemOnline();
00022         void recoverSystem();
00023         void applicationReset();
00024         void handleFaultyResetRecovery();
00025     public:
00026         Application();
00027         ~Application();
00028         
00029         void run();
00030 };
00031 
00032 #endif