HTTP/HTTPS client Hello World application running with X-NUCLEO-IDW01M1v2 wifi board.

Dependencies:   HTTPClient NetworkSocketAPI X_NUCLEO_IDW01M1v2 mbed

Fork of HTTPClient_HelloWorld by ST Expansion SW Team

Example of HTTP and HTTPS connections using X-NUCLEO-IDW01M1 Wi-Fi expansion board.
The application is meant to be used with mbed OS 2 ("Classic") only (no mbedOS 5 support).
For HTTPS connection it uses the TLS/SSL feature provided natively by the Wi-Fi module and performs secure connection to the server also verifying the server identity.
To avoid expired CA certificates, system time (in epoch) must be manually entered (e..g. using http://www.epochconverter.com/ ) .
Retrieval of current time from an NTP server is shown by this example.

Revision:
11:225ab4865c6b
Parent:
9:b54448c7f712
--- a/main.cpp	Mon Jan 16 12:35:33 2017 +0000
+++ b/main.cpp	Mon Jan 16 15:00:57 2017 +0000
@@ -37,7 +37,7 @@
     printf("\r\nconnecting to AP...\r\n");
     
     SpwfSAInterface spwf(D8, D2, PC_12, PC_8, false);
-    spwf.connect("crespan","Elfrontal1", NSAPI_SECURITY_WPA2);
+    spwf.connect("STM","STMDemo", NSAPI_SECURITY_WPA2);
 
     const char *ip = spwf.get_ip_address();
     printf("\r\nIP Address is: %s\r\n", ip);