Datasheet
Flyport Wi-Fi and Ethernet Programmer's guide framework 2.3 (rev 1.0) www.openpicus.com
// add a terminator character
string_serial[len_s] = '\0';
strlen(string_serial);
}
}
The result on a web browser if user writes the string “changed value...” on UART1 will be the shown
above, only when the whole web page has been reloaded:
NOTE: if user does not refresh the web page, the old value will be displayed even if actually a new
value of dynamic variable “string_serial” is assigned.
The assignment of the value of the dynamic variable ~string_serial~ as the value of “char
string_serial[20]” is done by HTTPApp.c.
The content of “HTTPApp.c” file is written above:
/****************************************************************************
SECTION Include
****************************************************************************/
#include "TCPIP Stack/TCPIP.h"
#if defined(STACK_USE_HTTP2_SERVER)
extern char string_serial[];
/****************************************************************************
SECTION Define
****************************************************************************/
#define __HTTPAPP_C
/****************************************************************************
SECTION Authorization Handlers
****************************************************************************/
/*****************************************************************************
FUNCTION BYTE HTTPNeedsAuth(BYTE* cFile)
This function is used by the stack to decide if a page is access protected.
If the function returns 0x00, the page is protected, if returns 0x80, no
authentication is required
*****************************************************************************/
61










