sstaub / Ethernet3

Ethernet library for Arduino and Ethernetshield2 / WIZ550io / WIZ850io / USR-ES1 with Wiznet W5500 chip
Other
76 stars 34 forks source link

Problem with page larger than 2k #31

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\