Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: HTTPClient NetworkSocketAPI X_NUCLEO_IDW01M1v2 mbed
Fork of HTTPClient_HelloWorld by
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, committed 2017-01-16
- Comitter:
- nikapov
- Date:
- Mon Jan 16 15:00:57 2017 +0000
- Parent:
- 10:b3fbc83d5f9b
- Child:
- 12:4ae87c278a63
- Commit message:
- Update lib.
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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);
