NetworkSocketAPI Test Suite for X-NUCLEO-IDW01M1 Wi-Fi expansion board.

Dependencies:   NSAPITests NetworkSocketAPI X_NUCLEO_IDW01M1 mbed

Fork of SpwfInterface_NSAPI_Tests by ST Expansion SW Team

Homepage

Introduction

SpwfInterface_NSAPI_Tests is a test suite application for the NSAPI Tests Suite for the expansion board X-NUCLEO-IDW01M1. Current supported platforms are NUCLEO-F401RE and NUCLEO-L476RG.

Example Application

The SpwfSAInterface class needs to be instantiated with the correct pin numbers for the UART RX/TX/RTS used and module pins reset and wakeup. Since there are two platforms supported (NUCLEO-F401RE and NUCLEO-L476RG), the pins will same as given in code below. For other boards they are expected to change.

SpwfSAInterface spwf(PA_9, PA_10, PC_12, PC_8, PA_12, true);


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


The NSAPI python script EchoServer.py needs to be executed on the server side before starting the test on the mbed platform. The server IP address and the port to connect to needs to be modified in the code below before starting the tests on the mbed platform.

nsapi_tests("SPWF Tests", &spwf, "192.168.1.6", 32001);




All wikipages