This is a NetworkSocketAPI example for LWIPBP3595Interface_STA library. LWIPBP3595Interface_STA library only works with GR-PEACH. The base example is HelloLWIPInterface.
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");