![](/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:
- 46:cf5ab96729e1
- Parent:
- 44:d7c5a56450a1
- Child:
- 50:a9926b8b21fe
--- a/main.cpp Fri Feb 26 17:44:19 2016 +0000 +++ b/main.cpp Thu Feb 25 11:11:25 2016 -0600 @@ -22,7 +22,7 @@ void flash(){ myled = !myled; } LWIPInterface eth; -TCPSocket socket(ð); // TODO +TCPSocket socket(ð); int main() {