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
Diff: Formatter.h
- Revision:
- 40:c966abbe2d62
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Formatter.h Thu Jun 16 08:38:31 2016 +0000 @@ -0,0 +1,51 @@ +#ifndef FORMATTER +#define FORMATTER + +#include "EthernetInterface.h" + +extern EthernetInterface eth; + +class Formatter +{ + public : + + Formatter(int nbChunk = 1); + + char* get_page(char *reply); + + protected : + + virtual void get_chunk(const int c, char *reply); + + private : + + int currentChunk; + int nbChunk; +}; + +class SimpleHTMLFormatter : public Formatter +{ + public : + + SimpleHTMLFormatter(); + + protected : + + virtual void get_chunk(const int c, char *reply); + +}; + +class InteractiveHTMLFormatter : public Formatter +{ + public : + + InteractiveHTMLFormatter(); + + protected : + + virtual void get_chunk(const int c, char *reply); +}; + + +#endif +