Socket interface for ESP8266. Implements the NetworkSocketAPI. Requires device to use the Espressif Firmware.

Dependencies:   ESP8266

Dependents:   ESP8266InterfaceTests HelloESP8266Interface

Fork of ESP8266Interface by NetworkSocketAPI

Note

This library 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.

Currently the ESP8266Interface LIbrary has the following Abilities:

Working

  • TCP Client
  • UDP Client
  • Transparent mode (single connection of 1 type at a time)
  • Station Mode (connects to AP)

To be implimented

  • TCP Server
  • UDP Server
  • Multi Connection Mode (able to have up to 5 sockets at a time)
  • AP Mode (Make ESP Chip act like access point)
  • DNS Support (currently websites must be looked up by IP)
  • Error Recovery

Nice but not necessary

  • colorized text for ESP AT Commands in Command line (easier to differentiate from other text)
Revision:
30:c19f1e61063b
Parent:
26:6e36dd3cec3f
Child:
34:9c26a3dcdc1f
--- a/ESP8266Interface.h	Thu Aug 27 14:32:50 2015 +0000
+++ b/ESP8266Interface.h	Mon Dec 28 05:39:05 2015 +0000
@@ -60,7 +60,7 @@
 class ESP8266Interface : public WiFiInterface
 {
 public:
-    ESP8266Interface(PinName tx, PinName rx);
+    ESP8266Interface(PinName tx, PinName rx, uint8_t trace = 0);
     virtual int32_t init(void);
     virtual int32_t init(const char *ip, const char *mask, const char *gateway);
     virtual int32_t connect(uint32_t timeout_ms) ;