TCPIP_HTTP_NET_ConnectionPostSmGet Function
C
uint16_t TCPIP_HTTP_NET_ConnectionPostSmGet(
TCPIP_HTTP_NET_CONN_HANDLE connHandle
);
Description
This function returns the POST state machine state for the connection defined by connHandle. This state is maintained by the HTTP connection and can be used by the user of the HTTP to maintain its own POST state machine. The values of the POST state machine have significance only for the user of the HTTP connection.
Preconditions
None.
Parameters
Parameters | Description |
---|---|
connHandle | HTTP connection handle. |
Returns
A 16-bit integer POST state machine state
Remarks
None.
Example
#define SM_POST_LCD_READ_NAME 1
#define SM_POST_LCD_READ_VALUE 2
switch(TCPIP_HTTP_NET_ConnectionPostSmGet(connHandle))
{
// Find the name
case SM_POST_LCD_READ_NAME:
.
.
.
// Found the value, so store the LCD and return
case SM_POST_LCD_READ_VALUE:
.
.
.
}