![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
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:
- 25:eef7d93d9f5b
- Parent:
- 24:471a07e886ae
- Child:
- 26:4242277cf9c7
--- a/main.cpp Mon Dec 28 06:42:51 2015 +0000 +++ b/main.cpp Mon Feb 01 22:22:36 2016 +0000 @@ -29,7 +29,7 @@ printf("NetworkSocketAPI Example\r\n"); wifi.init(); - wifi.connect("DemoRoom", ""); + wifi.connect("WifiDemo", ""); char* ip = wifi.getIPAddress(); printf("IP Address is: %s\n", (ip) ? ip : "No IP");