now this shit works

Dependencies:   BufferedSerial

Dependents:   IoTWeatherStation

Fork of ESP8266NodeMCUInterface by ESP8266

Revision:
43:2e326d95fe2c
Parent:
42:3f62103a4f3c
--- a/ESP8266/ESP8266.cpp	Thu May 07 03:51:02 2015 +0000
+++ b/ESP8266/ESP8266.cpp	Thu May 07 04:00:27 2015 +0000
@@ -327,6 +327,9 @@
 int ESP8266::send(const char * buf, int len)
 {
     //TODO: need to add handler for data > 2048B, this is the max packet size of the ESP8266.
+    if(len >= 2048){
+        WARN("send buffer >= 2048B, need to chunk this up to be less.");    
+    }
     const char* bufptr=buf;
     for(int i=0; i<len; i++) {
         putc((int)*bufptr++);