ESP8266 Webserver Project

Moderator: Sprite_tm

User avatar
By Sprite_tm
#34652 Yes, if you write a buffer longer than 2K it will bork, the internal buffer isn't that large. The solution is to return HTTPD_CGI_MORE in your CGI; the CGI will be called again as soon as there's more buffer space and you can send the remaining data then. See httpdespfs.c for an example. And yes, documentation unfortunately is lacking... if there are any volunteers to write or maintain it, I'd be very happy.