Example program for the LWIPInterface
Dependencies: LWIPInterface NetworkSocketAPI mbed-rtos mbed
Fork of HelloESP8266Interface by
Example for the NetworkSocketAPI. Attempts to get the device's public facing IP address from ifcfg.me.
Diff: main.cpp
- Branch:
- api-changes
- Revision:
- 37:4d946ea769fd
- Parent:
- 33:b80621db4a68
- Child:
- 41:83cf71e499ee
--- a/main.cpp Thu Feb 25 21:58:51 2016 +0000 +++ b/main.cpp Fri Feb 26 16:31:54 2016 +0000 @@ -21,7 +21,7 @@ DigitalOut myled(LED_GREEN); void flash(){ myled = !myled; } -ESP8266Interface wifi(D1, D0); +ESP8266Interface wifi(D1, D0, true); TCPSocket socket(&wifi); int main()