now this shit works
Fork of ESP8266NodeMCUInterface by
Diff: ESP8266/ESP8266.h
- Revision:
- 49:a7741fe989ca
- Parent:
- 47:04632d22a723
--- a/ESP8266/ESP8266.h Thu Jun 04 20:45:00 2015 +0000 +++ b/ESP8266/ESP8266.h Sun Mar 13 21:09:31 2016 +0000 @@ -171,6 +171,16 @@ return _inst; }; + /** + * Send part of a command to the wifi module. + * + * @param cmd string to be sent + * @param len optional length of cmd + * @param sanitize flag indicating if cmd is actually payload and needs to be escaped + * @return true if successful + */ + bool command(const char *cmd); + private: /** * Read a character with timeout @@ -201,15 +211,7 @@ */ bool flush(); - /** - * Send part of a command to the wifi module. - * - * @param cmd string to be sent - * @param len optional length of cmd - * @param sanitize flag indicating if cmd is actually payload and needs to be escaped - * @return true if successful - */ - bool command(const char *cmd); + /** * Execute the command sent by command @@ -219,6 +221,7 @@ * @return true if successful */ bool execute(char *resp_buffer = 0, int *resp_len = 0); + bool execute_full_length(char *resp_buffer = 0, int *resp_len = 0); protected: BufferedSerial _serial;