reef monitor
Dependencies: mbed-rtos EthernetInterface FatFileSystemCpp MCP23S17 SDFileSystem mbed
Fork of HTTPServerHelloWorld by
Model/Application.h@12:72e0c404017a, 2015-01-03 (annotated)
- Committer:
- wyunreal
- Date:
- Sat Jan 03 17:50:52 2015 +0000
- Revision:
- 12:72e0c404017a
- Parent:
- 11:9366140ebe5f
draft of file request handler;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wyunreal | 4:a19825caaf41 | 1 | #ifndef APPLICATION_H |
wyunreal | 4:a19825caaf41 | 2 | #define APPLICATION_H |
wyunreal | 4:a19825caaf41 | 3 | |
wyunreal | 11:9366140ebe5f | 4 | #include "HttpServer.h" |
wyunreal | 11:9366140ebe5f | 5 | #include "WatchDogTimer.h" |
wyunreal | 8:3655e9a98f28 | 6 | #include "SDFileSystem.h" |
wyunreal | 10:372c882b5533 | 7 | #include "ActuatorsController.h" |
wyunreal | 4:a19825caaf41 | 8 | |
wyunreal | 4:a19825caaf41 | 9 | class Application { |
wyunreal | 4:a19825caaf41 | 10 | private: |
wyunreal | 10:372c882b5533 | 11 | SPI *spiHandler; |
wyunreal | 10:372c882b5533 | 12 | |
wyunreal | 7:1fe91b525d9a | 13 | WatchDogTimer* watchDog; |
wyunreal | 11:9366140ebe5f | 14 | HttpServer* httpServer; |
wyunreal | 6:b2c4687b421d | 15 | FileSystemLike* localFileSystem; |
wyunreal | 8:3655e9a98f28 | 16 | FileSystemLike* sdFileSystem; |
wyunreal | 10:372c882b5533 | 17 | ActuatorsController* actuatorsController; |
wyunreal | 4:a19825caaf41 | 18 | |
wyunreal | 4:a19825caaf41 | 19 | void setup(); |
wyunreal | 4:a19825caaf41 | 20 | void loop(); |
wyunreal | 11:9366140ebe5f | 21 | int isSystemOnline(); |
wyunreal | 11:9366140ebe5f | 22 | void recoverSystem(); |
wyunreal | 4:a19825caaf41 | 23 | void applicationReset(); |
wyunreal | 7:1fe91b525d9a | 24 | void handleFaultyResetRecovery(); |
wyunreal | 4:a19825caaf41 | 25 | public: |
wyunreal | 4:a19825caaf41 | 26 | Application(); |
wyunreal | 4:a19825caaf41 | 27 | ~Application(); |
wyunreal | 4:a19825caaf41 | 28 | |
wyunreal | 4:a19825caaf41 | 29 | void run(); |
wyunreal | 4:a19825caaf41 | 30 | }; |
wyunreal | 4:a19825caaf41 | 31 | |
wyunreal | 4:a19825caaf41 | 32 | #endif |