now this shit works

Dependencies:   BufferedSerial

Dependents:   IoTWeatherStation

Fork of ESP8266NodeMCUInterface by ESP8266

Revision:
45:3cfb7406d993
Parent:
44:16da10e7b3f7
Child:
47:04632d22a723
--- a/ESP8266/ESP8266.h	Wed Jun 03 21:44:20 2015 +0000
+++ b/ESP8266/ESP8266.h	Thu Jun 04 19:26:35 2015 +0000
@@ -194,6 +194,13 @@
     bool discardEcho();
     
     /**
+    * Flushes to next prompt
+    *
+    * @return true if successful
+    */
+    bool flush();
+    
+    /**
     * Send part of a command to the wifi module.
     *
     * @param cmd string to be sent
@@ -204,15 +211,6 @@
     bool command(const char *cmd);
     
     /**
-    * Sanitizes and sends payload to wifi module 
-    *
-    * @param data data to send
-    * @param len length of data
-    * @return true if successful
-    */
-    bool payload(const char *data, int len);
-    
-    /**
     * Execute the command sent by command
     *
     * @param resp_buf pointer to buffer to store response from the wifi module