Introduction
This example demonstrates the use of the WINC3400 with the SAM Xplained Pro board to test continuous data transmission between TCP client and TCP server in roaming.
It uses the following hardware:
- the SAM Xplained Pro.
- the WINC3400 on EXT1.
Main Files
- main.c : Initialize the WINC3400 and test TCP client.
Usage
- Configure below code in the main.h for AP information to be connected.
- Build the program and download it into the board.
- On the computer, open and configure a terminal application as the follows.
* Baud Rate : 115200
* Data : 8bit
* Parity bit : none
* Stop bit : 1bit
* Flow control : none
* -# Start the application.
* -# In the terminal window, the following text should appear:
* -- WINC3400 Simple Roaming HTTPS example --
* -- SAM_XPLAINED_PRO --
* -- Compiled: xxx xx xxxx xx:xx:xx --
*
- On the computer, run the server.py script to start server.
- In the terminal window, the following text should appear:
* Received - xxx xxx xx xx:xx:xx xxxx
* Data sent from client -> server!
* Received - xxx xxx xx xx:xx:xx xxxx
* Data sent from client -> server!
*
*
* Roamed to a new AP
*
*
* Received - xxx xxx xx xx:xx:xx xxxx
* Data sent from client -> server!
* Received - xxx xxx xx xx:xx:xx xxxx
* Data sent from client -> server!
*
Compilation Information
This software was written for the GNU GCC compiler using Atmel Studio 6.2 Other compilers are not guaranteed to work.
Contact Information
For further information, visit Microchip.