Webserver only w/o any other functions, single thread. Running on STM32F013+W5500
Dependencies: NTPClient W5500Interface Watchdog device_configuration eeprom_flash mbed-rpc-nucleo mbed-rtos mbed
Fork of F103-Serial-to-Ethernet by
RequestHandler.h
- Committer:
- olympux
- Date:
- 2016-08-19
- Revision:
- 47:d92d2c5b8073
- Parent:
- 40:c966abbe2d62
File content as of revision 47:d92d2c5b8073:
#ifndef REQUEST_HANDLER #define REQUEST_HANDLER #include "RPCCommand.h" class RequestHandler { public : virtual void handle(const RPCCommand& cmd, char* reply) = 0; }; class GetRequestHandler : public RequestHandler { public : virtual void handle(const RPCCommand& cmd, char* reply); }; class PutRequestHandler : public RequestHandler { public : virtual void handle(const RPCCommand& cmd, char* reply); }; class DeleteRequestHandler : public RequestHandler { public : virtual void handle(const RPCCommand& cmd, char* reply); }; class ComplexRequestHandler : public RequestHandler { public : virtual void handle(const RPCCommand& cmd, char* reply); private : GetRequestHandler getHandler; PutRequestHandler putHandler; DeleteRequestHandler deleteHandler; }; #endif