![](/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:
- 43:932c5ddd7860
- Parent:
- 42:d8ea089e5606
- Child:
- 44:d7c5a56450a1
--- a/main.cpp Thu Feb 25 04:19:15 2016 -0600 +++ b/main.cpp Fri Feb 26 17:30:00 2016 +0000 @@ -21,8 +21,8 @@ DigitalOut myled(LED_GREEN); void flash(){ myled = !myled; } -ESP8266Interface wifi(D1, D0); -TCPSocket socket(&wifi); +//LWIPInterface wifi(D1, D0); +TCPSocket socket(0); // TODO int main() {