2.2 TCP Server in SoftAP
This example compiles the TCP Server in SoftAP application which is used to demonstrate a TCP Client-Server connection.
Description
In this demonstration, the WINC Driver will advertise a SoftAP. The SoftAP connection is used to demonstrate a TCP client-server operation.
Downloading and building the application
To download or clone this application from Github, go to the top level of the repository
Path of the application within the repository is apps/wifi_tcp_server_in_softap/firmware .
To build the application, refer to the following table and open the project using its IDE.
Project Name | Description |
---|---|
sam_d21_xpro_winc3400.X | MPLABX project for SAMD21 and WINC3400 Xplained pro |
sam_e54_xpro_winc3400.X | MPLABX project for SAME54 and WINC3400 Xplained pro |
Setting up SAMXXX Xplained Pro board
- Connect the Debug USB port on the SAMXXX Xplained Pro board to the computer using a micro USB cable
Running the Application
Open the project.
Build and program the generated code into the hardware using its IDE.
On the connected computer, launch a terminal application and configure it with the following settings: Baud Rate: 115200 Data Bits: 8 Parity: None Stop Bits: 1 Flow Control: None
The device will start in AP mode. Please connect a PC to the WINC device, and then use a TCP client to connect to the TCP server running on the WINC device, as instructed in the serial console message.