HTTPPostLCD Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
HTTPPostLCD Function
C
static HTTP_IO_RESULT HTTPPostLCD();
Description

Locates the 'lcd' parameter and uses it to update the text displayed on the board's LCD display. 

This function has four states. The first reads a name from the data string returned as part of the POST request. If a name cannot be found, it returns, asking for more data. Otherwise, if the name is expected, it reads the associated value and writes it to the LCD. If the name is not expected, the value is discarded and the next name parameter is read. 

In the case where the expected string is never found, this function will eventually return HTTP_IO_NEED_DATA when no data is left. In that case, the HTTP2 server will automatically trap the error and issue an Internal Server Error to the browser.

Preconditions

None

Return Values
Return Values 
Description 
HTTP_IO_DONE 
the parameter has been found and saved 
HTTP_IO_WAITING 
the function is pausing to continue later 
HTTP_IO_NEED_DATA 
data needed by this function has not yet arrived 
Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.