|
RF24Ethernet - TCP/IP over RF24Network v2.0.1
TMRh20 - Pushing the practical limits of RF24 modules
|
Go to the source code of this file.
Macros | |
| #define | strncpy_P strncpy |
| #define | OUTPUT_BUFFER_SIZE MAX_PAYLOAD_SIZE |
Functions | |
| void | sendPage (EthernetClient &_client, const char *_pointer, size_t size) |
| void | main_page (EthernetClient &_client) |
| void | credits_page (EthernetClient &_client) |
| void | stats_page (EthernetClient &_client) |
Variables | |
| bool | led_state = 0 |
| static const PROGMEM char | begin_html [] |
| static const PROGMEM char | main_html_p1 [] |
| static const PROGMEM char | main_html_p2 [] |
| static const PROGMEM char | credits_html [] |
| static const PROGMEM char | html_page [] |
This file is used for html code in the InteractiveServer_Mesh example
Definition in file HTML.h.
| #define strncpy_P strncpy |
Definition at line 7 of file HTML.h.
Referenced by stats_page().
| void sendPage | ( | EthernetClient & | _client, |
| const char * | _pointer, | ||
| size_t | size ) |
This function reads from a specified program memory buffer, and sends the data to the client in chunks equal to the max output buffer size or less This allows the HTML code to be modified as desired, with no need to change any other code
Definition at line 97 of file HTML.h.
References EthernetClient.
Referenced by credits_page(), and main_page().
| void main_page | ( | EthernetClient & | _client | ) |
Definition at line 106 of file HTML.h.
References begin_html, EthernetClient, led_state, main_html_p1, main_html_p2, OUTPUT_BUFFER_SIZE, and sendPage().
| void credits_page | ( | EthernetClient & | _client | ) |
Definition at line 140 of file HTML.h.
References begin_html, credits_html, EthernetClient, and sendPage().
| void stats_page | ( | EthernetClient & | _client | ) |
Definition at line 153 of file HTML.h.
References Ethernet, EthernetClient, OUTPUT_BUFFER_SIZE, and strncpy_P.
| bool led_state = 0 |
Definition at line 12 of file HTML.h.
Referenced by main_page().
|
static |
This page stores the actual HTML code that will be presented. The data is stored in program memory as a single long string, and is presented below in a manageable format
Definition at line 24 of file HTML.h.
Referenced by credits_page(), and main_page().
|
static |
main html part 1
Definition at line 40 of file HTML.h.
Referenced by main_page().
|
static |
main html part 2
Definition at line 51 of file HTML.h.
Referenced by main_page().
|
static |
The HTML for the credits page
Definition at line 66 of file HTML.h.
Referenced by credits_page().