RF24Ethernet - TCP/IP over RF24Network v1.6.17
TMRh20 - Pushing the practical limits of RF24 modules
Loading...
Searching...
No Matches
HTML.h File Reference

Go to the source code of this file.

Macros

#define strncpy_P   strncpy
 

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
 

Detailed Description

This file is used for html code in the InteractiveServer_Mesh example

Definition in file HTML.h.

Macro Definition Documentation

◆ strncpy_P

#define strncpy_P   strncpy

Definition at line 7 of file HTML.h.

Referenced by stats_page().

Function Documentation

◆ sendPage()

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 95 of file HTML.h.

Referenced by credits_page(), and main_page().

◆ main_page()

void main_page ( EthernetClient & _client)
Examples
InteractiveServer_Mesh.ino, and SLIP_InteractiveServer.ino.

Definition at line 104 of file HTML.h.

References led_state, OUTPUT_BUFFER_SIZE, and sendPage().

◆ credits_page()

void credits_page ( EthernetClient & _client)
Examples
InteractiveServer_Mesh.ino, and SLIP_InteractiveServer.ino.

Definition at line 138 of file HTML.h.

References sendPage().

◆ stats_page()

void stats_page ( EthernetClient & _client)
Examples
InteractiveServer_Mesh.ino, and SLIP_InteractiveServer.ino.

Definition at line 151 of file HTML.h.

References OUTPUT_BUFFER_SIZE, and strncpy_P.

Variable Documentation

◆ led_state

bool led_state = 0
Examples
InteractiveServer_Mesh.ino, and SLIP_InteractiveServer.ino.

Definition at line 10 of file HTML.h.

Referenced by main_page().