User Manual

AdafruitTCPServer
This class allows you to create a simple TCP based server to communicate with other TCP clients.
Constructor
AdafruitTCPServer has the following constructor:
Parameters:
port: The port to use for the TCP server (1..65535)
Functions
The following public functions are defined as part of the class:
bool begin (void)
Starts the TCP server and begins listening for connections.
Parameters: None
Returns: 'True' (1) if the operation was successful, otherwise 'false' (0).
AdafruitTCP accept (void)
Accepts a new connection with a Client, returning an instance of the AdafruitTCP class to handle the client details.
Parameters: None
Returns: An instance of the AdafruitTCP class that can be used to deal with the client reads and writes.
AdafruitTCP available (void)
This function is an alias for the .accept function described above.
void stop (void)
Stops the TCP server.
This class is still a work in progress and may undergo significant changes in a future version of the WICED
Feather library. It should be considered experimental for now.
AdafruitTCPServer(uint16_t port)
bool begin ( void )
AdafruitTCP accept ( void )
AdafruitTCP available ( void )
void stop ( void )
void setConnectCallback ( tcpserver_callback_t fp )
© Adafruit Industries https://learn.adafruit.com/introducing-the-adafruit-wiced-feather-wifi Page 83 of 202