Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
WINC1500 SSL Connect Example for SAM4S XPlained Pro Documentation

Introduction

This example demonstrates how to connect to a server via Secure Socket Layer (SSL) using the WINC1500 Wi-Fi module.
It uses the following hardware:

  • the SAM Xplained Pro.
  • the WINC1500 on EXT1.

Main Files

  • main.c : Initialize the WINC1500 Wi-Fi module and connect to a server using SSL.

Usage

  1. Configure below code in the config main.h for AP information to be connected.
    * #define MAIN_WLAN_SSID "DEMO_AP"
    * #define MAIN_WLAN_PSK "12345678"
    *
  2. Build the program and download it into the board.
  3. 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
    *
  4. Start the application.
  5. In the terminal window, the following text should appear:
    * -- SSL example --
    * -- SAMXXX_XPLAINED_PRO --
    * -- Compiled: xxx xx xxxx xx:xx:xx --
    * wifi_cb: M2M_WIFI_REQ_DHCP_CONF: IP is xxx.xxx.xxx.xxx
    * Host IP is xxx.xxx.xxx.xxx
    * Host Name is www.google.com
    * Successfully connected.
    *
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 WINC1500 Software User Guide.)
*

Compilation Information

This software was written for the GNU GCC compiler using Atmel Studio 6.2 Other compilers may or may not work.

Contact Information

For further information, visit Microchip.