Introduction
This example demonstrates how to connect to a server via Application Layer Protocol Negotiation (ALPN) using the WINC3400 Wi-Fi module.
It uses the following hardware:
- the SAM Xplained Pro.
- the WINC3400 on EXT1.
Main Files
- main.c : Initialize the WINC3400 Wi-Fi module and connect to a server using SSL.
Usage
- The connection parameters can be configured in main.h.
- Build the program and download it into the board.
- On the computer, open and configure a terminal application as following.
* 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:
* -- ALPN example --
* -- SAMXXX_XPLAINED_PRO --
* -- Compiled: xxx xx xxxx xx:xx:xx --
* (APP)(INFO)Chip ID 3400d2
* (APP)(INFO)Curr driver ver: x.x.x
* (APP)(INFO)Curr driver HIF Level: (2) x.x
* (APP)(INFO)Fw HIF: 8104
* (APP)(INFO)Firmware HIF (2) : x.x
* (APP)(INFO)Firmware ver : x.x.x
* (APP)(INFO)Firmware Build <Month> DD YYYY Time xx:xx:xx
* Host IP is xxx.xxx.xxx.xxx
* Host Name is www.google.com
* Successfully connected.
* Negotiated HTTP/2.
*
- Warning
* For using SSL, the root certificate must be installed.
* Download the root certificate using the root_certificate_downloader from the
* firmware update project available in the ASF. (Refer to WINC3400 Software User Guide.)
*
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.