Student project by David Berlin and Boris Dogadov made for the Embedded Systems Workshop course given in Tel-Aviv University on 2010 by Sivan Toledo. Visit the project website for more details: http://davidberlin.co.il/sadna/ .
Dependencies: EthernetNetIf NTPClient_NetServices mbed HTTPServer HTTPClient CyaSSL
Diff: HttpHandlerSetup.h
- Revision:
- 1:b05231650f32
- Parent:
- 0:3e7d6f496a67
--- a/HttpHandlerSetup.h Sun Apr 17 21:30:10 2011 +0000 +++ b/HttpHandlerSetup.h Mon Apr 25 12:31:46 2011 +0000 @@ -3,8 +3,10 @@ #ifndef HTTP_HANDLER_SETUP #define HTTP_HANDLER_SETUP +// Read password and username from the settting file (/usb/DBSet.txt) bool ReadSettings(char* username, char* password); +// Http handler that provides welcome and setup pages class HttpHandlerSetup : public HTTPRequestHandler { public: @@ -23,8 +25,8 @@ virtual void onClose(); //Connection is closing private: - void doGetPageWelcome(); - void UpdateSettingsFile(); + void doGetPageWelcome(); // Called from doGet(), get the welcome webpage + void UpdateSettingsFile(); // Updates the username and password in the settings file bool m_WasDataRead; };