Non-blocking example of the LWIPInterface
Dependencies: LWIPInterface NetworkSocketAPI mbed-rtos mbed
Non-blocking example for the NetworkSocketAPI. Attempts to get the device's public facing IP address from ifcfg.me using the Happy Eyeballs algorithm to fetch an IPv4 or IPv6 address.
Diff: main.cpp
- Revision:
- 40:6a90de1da5e2
- Parent:
- 38:561e0cdbba79
- Child:
- 41:83cf71e499ee
--- a/main.cpp Thu Feb 25 04:14:27 2016 -0600 +++ b/main.cpp Thu Feb 25 04:14:49 2016 -0600 @@ -30,7 +30,7 @@ t.attach(flash, 0.4f); printf("NetworkSocketAPI Example\r\n"); - wifi.connect("Sniffer", "Sandcastle"); + wifi.connect("ssid", "password"); const char *ip = wifi.getIPAddress(); const char *mac = wifi.getMACAddress();