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: LWIPBP3595Interface_STA LWIPInterface NetworkSocketAPI mbed-rtos mbed
Fork of HelloLWIPBP3595Interface by
Revision 6:0679a8be2368, committed 2017-06-29
- Comitter:
- MACRUM
- Date:
- Thu Jun 29 10:08:08 2017 +0000
- Parent:
- 5:f2f7d44c366d
- Commit message:
- Add wifi.connect parameter
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r f2f7d44c366d -r 0679a8be2368 main.cpp
--- a/main.cpp Wed Nov 30 08:21:08 2016 +0000
+++ b/main.cpp Thu Jun 29 10:08:08 2017 +0000
@@ -58,7 +58,7 @@
printf("NetworkSocketAPI Example\r\n");
- wifi.connect("ssid", "password");
+ wifi.connect("ssid", "password", NSAPI_SECURITY_WPA2);
const char *ip = wifi.get_ip_address();
const char *mac = wifi.get_mac_address();
printf("IP address is: %s\r\n", ip ? ip : "No IP");
