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:
- 7:6787b920b496
- Parent:
- 6:751245e265f6
- Child:
- 9:da5a230fa4f4
--- a/main.cpp Wed Jun 17 20:58:21 2015 +0000 +++ b/main.cpp Wed Jun 17 21:02:14 2015 +0000 @@ -15,11 +15,11 @@ */ #include "mbed.h" -#include "ESP8266Interface.h" +#include "WiFiRadioInterface.h" DigitalOut myled(LED1); -ESP8266Interface wifi; +WiFiRadioInterface wifi; // or //NetworkInterface *wifi = new WiFiInterface;