GenericTCPClient Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
GenericTCPClient Function
C
void GenericTCPClient();
Description

This function implements a simple HTTP client, which operates over TCP. The function is called periodically by the stack, and waits for BUTTON1 to be pressed. When the button is pressed, the application opens a TCP connection to an Internet search engine, performs a search for the word "Microchip" on "microchip.com", and prints the resulting HTML page to the UART. 

This example can be used as a model for many TCP and HTTP client applications.

Preconditions

TCP is initialized.

Returns

None

Module
Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.