Is there a maximum number of pages which can be served?
Posted: Sun Sep 13, 2015 3:05 pm
I notice my esp8266 suddenly crashing on boot if I increase the number of pages served (using ESP8266WebServer.on). Is there a max of pages which can be served? Or could this be a memory problem (334.212 program memory used / 69.240 dynamic memory used). Some of the code:
Code: Select all
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
ESP8266WebServer server(80);
const char gui[] PROGMEM = ... (large char string)
const char vicii[] PROGMEM = ...(larger char string)
void KeyDown(){
}
void VICIIUpdates(){
}
...
void setup(){
...
server.on ( "/",[]() {
server.send ( 200, "text/html", gui);
});
server.on ( "/VICII.js",[]() {
server.send ( 200, "text/plain", vicii);
});
server.on ( "/VICIIRefresh", VICIIRefresh);
//on turning one of the following on the esp crashes on boot
// server.on ( "/VICIIUpdates", VICIIUpdates);
// server.on ( "/KeyDown", KeyDown);
server.onNotFound(handleNotFound);
...
}