Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-rtos EthernetInterface FatFileSystemCpp MCP23S17 SDFileSystem mbed
Fork of HTTPServerHelloWorld by
Model/Application.h@5:df012c2caf40, 2014-02-01 (annotated)
- Committer:
- wyunreal
- Date:
- Sat Feb 01 18:54:20 2014 +0000
- Revision:
- 5:df012c2caf40
- Parent:
- 4:a19825caaf41
- Child:
- 6:b2c4687b421d
Adding a FS handler to the webserver and mounting it to the local file system
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 | 4:a19825caaf41 | 4 | #include "EthernetService.h" |
| wyunreal | 5:df012c2caf40 | 5 | #include "RestServer.h" |
| wyunreal | 4:a19825caaf41 | 6 | |
| wyunreal | 4:a19825caaf41 | 7 | class Application { |
| wyunreal | 4:a19825caaf41 | 8 | private: |
| wyunreal | 4:a19825caaf41 | 9 | EthernetService* ethernetService; |
| wyunreal | 5:df012c2caf40 | 10 | RestServer* restServer; |
| wyunreal | 5:df012c2caf40 | 11 | FileSystemLike* fileSystem; |
| wyunreal | 4:a19825caaf41 | 12 | |
| wyunreal | 4:a19825caaf41 | 13 | void setup(); |
| wyunreal | 4:a19825caaf41 | 14 | void loop(); |
| wyunreal | 4:a19825caaf41 | 15 | void applicationReset(); |
| wyunreal | 4:a19825caaf41 | 16 | public: |
| wyunreal | 4:a19825caaf41 | 17 | Application(); |
| wyunreal | 4:a19825caaf41 | 18 | ~Application(); |
| wyunreal | 4:a19825caaf41 | 19 | |
| wyunreal | 4:a19825caaf41 | 20 | void run(); |
| wyunreal | 4:a19825caaf41 | 21 | }; |
| wyunreal | 4:a19825caaf41 | 22 | |
| wyunreal | 4:a19825caaf41 | 23 | #endif |
