khoih-prog / EthernetWebServer

This is simple yet complete WebServer library for AVR, AVR Dx, Portenta_H7, Teensy, SAM DUE, SAMD21/SAMD51, nRF52, STM32, RP2040-based, etc. boards running Ethernet shields. The functions are similar and compatible to ESP8266/ESP32 WebServer libraries to make life much easier to port sketches from ESP8266/ESP32. Coexisting now with `ESP32 WebServer` and `ESP8266 ESP8266WebServer` libraries. Ethernet_Generic library is used as default for W5x00 with custom SPI
MIT License
178 stars 49 forks source link

Problem with page larger than 2k. #7

Closed BorgMcz closed 4 years ago

BorgMcz commented 4 years ago

Hello, I don't know exactly where the problem is, but if I try to create an html page larger than 2k, a part of the page will load in the browser (corresponds to a size of about 2k) and then restart for an internal error. I use W5500 (ethernet3), esp8266 (sdk 2.7.1), ethernetwebserver (v 1.0.7).

`void handleRoot() { char temp[3000]; uptime::calculateUptime(); float x1 = newVoltageSend; int x2 = uptime::getDays(); int x3 = uptime::getHours(); int x4 = uptime::getMinutes(); int x5 = uptime::getSeconds();

snprintf(temp, 3000, "\

ESP8266 WebMonitor - Status info\