ESP8266WebServer - bug(?)
Posted: Sun Jan 10, 2016 6:56 am
I am trying to port this webserver to st32 platform...
I have found out there is problem in _parseRequest function (Parseing.cpp). In client buffer the data remains from previous cycle of _handleRequest function (8266WebServer.cpp). It generates false requests.
I have added client.stop() in _handleRequest as follows:
...
_currentClient.stop();
_currentClient = EthernetClient();
_currentUri = String();
}
After that problem disappeared.
Could someone investigate it if it is bug and can make troubles even in esp8266 projects?
I have found out there is problem in _parseRequest function (Parseing.cpp). In client buffer the data remains from previous cycle of _handleRequest function (8266WebServer.cpp). It generates false requests.
I have added client.stop() in _handleRequest as follows:
...
_currentClient.stop();
_currentClient = EthernetClient();
_currentUri = String();
}
After that problem disappeared.
Could someone investigate it if it is bug and can make troubles even in esp8266 projects?