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)
Branch:
api-changes
Revision:
38:eb1e46561a19
Parent:
36:3d55c7187e34
Child:
40:83c6b4129468
--- a/ESP8266Interface.h	Tue Feb 23 01:31:42 2016 -0600
+++ b/ESP8266Interface.h	Tue Feb 23 04:02:07 2016 -0600
@@ -34,8 +34,7 @@
     virtual int32_t connect(
         const char *ssid,
         const char *pass,
-        wifi_security_t security = WI_NONE,
-        uint32_t timeout_ms = 15000);
+        wifi_security_t security = WI_NONE);
 
     virtual int32_t disconnect();
 
@@ -43,6 +42,8 @@
     virtual const char *getIPAddress();
     virtual const char *getMACAddress();
 
+    virtual void setTimeout(uint32_t timeout);
+
     virtual SocketInterface *createSocket(socket_protocol_t proto);
     virtual void destroySocket(SocketInterface *socket);