Example program for the ESP8266Interface running Espressif Firmware
Dependencies: ESP8266Interface NetworkSocketAPI mbed
Note
This example code assumes your ESP8266 is running the Espressif Firmware. For instructions on how to update your ESP8266 to use the correct firmware see the Firmware Update Wiki Page.
This program demonstrates how to open, close, send and recv from the ESP8266 using the Network Socket API.
Diff: main.cpp
- Revision:
- 7:6787b920b496
- Parent:
- 6:751245e265f6
- Child:
- 9:da5a230fa4f4
diff -r 751245e265f6 -r 6787b920b496 main.cpp --- 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;