Introduction
This example demonstrates the use of the WINC1500 with the SAM Xplained Pro board to retrieve weather information from openweathermap.org server.
It uses the following hardware:
- the SAM Xplained Pro.
- the WINC1500 on EXT1.
Main Files
- main.c : Initialize the WINC1500 and retrieve information.
Usage
- 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:
* -- WINC1500 weather client example --
* -- SAMXXX_XPLAINED_PRO --
* -- Compiled: xxx xx xxxx xx:xx:xx --
* Provision Mode started.
* Connect to [atmelconfig.com] via AP[WINC1500_xx:xx] and fill up the page.
*
wifi_cb: IP address is xxx.xxx.xxx.xxx
*
wifi_cb: IP address is xxx.xxx.xxx.xxx
*
resolve_cb: api.openweathermap.org IP address is xxx.xxx.xxx.xxx
* City: Paris
* Temperature: 24.50
* Weather Condition: sky is clear
*
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.