X-NUCLEO-IDW01M1 Wi-Fi expansion board mbed OS 2 ("Classic") library. mbed OS 5 library also available (see below).
Fork of X_NUCLEO_IDW01M1v2 by
X_NUCLEO_IDW01M1 is a mbed library for the Wi-Fi expansion board X-NUCLEO-IDW01M1 compatible with STM32 Nucleo.
The software can be used for building Wi-Fi applications with the SPWF01SA module. It is an implementation of the NetworkSocketAPI library from mbed OS 2 ("Classic").
mbed OS 5 library can instead be found at this link.
This library is only supported on NUCLEO platforms and any platforms with Arduino connector. However connection to arduino needs to be done manually using 4 wires for Vdd, Gnd, Rx and Tx. Example applications have more specific details on exact connections to be used.
The features of the library are :
- Supports mbed OS 2 ("Classic") NetworkSocketAPI
- Supports both client sockets
- Configuration of USART pins to be used
Class SpwfSAInterface is intended to represent the X-NUCLEO-IDW01M1 expansion board with the SPWF module.
The expansion board is basically featuring the component:
- a SPWF01SA Serial-to-Wi-Fi module
NSAPI Test Suite
--- a/SpwfInterface.h Mon Jan 02 14:50:17 2017 +0000 +++ b/SpwfInterface.h Tue Jan 10 10:39:56 2017 +0000 @@ -61,8 +61,8 @@ virtual const char *get_mac_address(); // implementation of secure sockets - virtual void set_secure_sockets(void); // to be called before socket creation if TLS/SSL is required - virtual void set_unsecure_sockets(void); // to be called after socket creation to set unsecure mode (deft) + virtual void set_secure_mode(void); // to be called before socket creation if TLS/SSL is required + virtual void set_unsecure_mode(void); // to be called after socket creation to set unsecure mode (deft) virtual bool isSecure_socket(void); virtual int set_time(time_t ctTime); // TLS/SSL requires correct system time to check certificates virtual int set_TLS_certificate(char * cert, unsigned int size, CertType_t type); // root cert in PEM format