Simple test application for the STMicroelectronics X-NUCLEO-IDW01M1 Wi-Fi expansion board.

Dependencies:   NetworkSocketAPI X_NUCLEO_IDW01M1v2 mbed

Fork of HelloWorld_IDW01M1v2 by ST Expansion SW Team

Introduction

HelloWorld_IDW01M1 is an example application which uses the X_NUCLEO_IDW01M1v2 mbed library.

The software can be used for testing the X-NUCLEO-IDW01M1 expansion board on mbed platforms. Current supported platforms are NUCLEO-F401RE and NUCLEO-L476RG.

Example Application

The SpwfSAInterface class needs to be instantiated with the UART RX and TX pins used. Depending on the platform used, the pin numbers may vary.

E.g. For FRDM K64F board it is: D9 and D7.

For Nucleo it is D8 and D2.

SpwfSAInterface spwf(D8, D2, false);


First of all, the example application tries to connect to the SSID/AP which is provided in the program code. In order to connect to your desired SSID/AP please change the SSID/AP settings/text to the one which is used in the user's environment. Please also remember that the SSID needs to be connected to the internet.

 char * ssid = "STM"; //Please change to local SSID/AP name
 char * seckey = "STMdemoPWD"; //Please change password


After connection the program prints its own IP address and MAC address on the serial terminal over UART. Please launch a terminal application (e.g.: TeraTerm, PuTTY on Windows, Minicom on Linux) and set the UART port to 9600 bps, 8 bit, No Parity, 1 stop bit. Thereafter the program retreives the IP address of the "st.com" webpage and outputs it to the serial terminal.

After outputting the IP address of st.com, the program tries to connect to the address "http://4.ifcfg.me" and socket 23. After connecting to the socket the program receives the IP Address from the server and outputs the IP Address it receives which denotes the public IP Address of the platform + X-Nucleo-IDW01M1 (node).

Further the program closes the socket, disconnects from the SSID and exits. This is just a simple "Hello World" style program for the X-NUCLEO-IDW01M1 Wi-Fi Expansion Board.

History

Moved secure socket connection to the specific TLS_HelloWorld app default tip

2017-01-16, by mapellil [Mon, 16 Jan 2017 13:26:50 +0000] rev 12

Moved secure socket connection to the specific TLS_HelloWorld app


Updated wifi lib

2017-01-13, by mapellil [Fri, 13 Jan 2017 15:31:35 +0000] rev 11

Updated wifi lib


Updated lib, moved secure connection to mbed.com

2017-01-10, by mapellil [Tue, 10 Jan 2017 10:56:37 +0000] rev 10

Updated lib, moved secure connection to mbed.com


Added set time on Wifi module

2017-01-10, by mapellil [Tue, 10 Jan 2017 09:20:31 +0000] rev 9

Added set time on Wifi module


Added secure socket connection example (one way server authentication); updated lib

2017-01-05, by mapellil [Thu, 05 Jan 2017 09:39:03 +0000] rev 8

Added secure socket connection example (one way server authentication); updated lib


Updated network data.

2016-10-17, by nikapov [Mon, 17 Oct 2016 15:26:16 +0000] rev 7

Updated network data.


Update dependencies.

2016-10-17, by nikapov [Mon, 17 Oct 2016 15:11:29 +0000] rev 6

Update dependencies.


updating X_NUCLEO_IDW01M1v2 lib to ST/X_NUCLEO_IDW01M1v2 lib

2016-09-09, by mridup [Fri, 09 Sep 2016 10:52:57 +0000] rev 5

updating X_NUCLEO_IDW01M1v2 lib to ST/X_NUCLEO_IDW01M1v2 lib


updating print statement

2016-09-07, by mridup [Wed, 07 Sep 2016 11:13:06 +0000] rev 4

updating print statement


Updating X_NUCLEO_IDW01M1 lib

2016-09-07, by mridup [Wed, 07 Sep 2016 09:01:47 +0000] rev 3

Updating X_NUCLEO_IDW01M1 lib