Moderator: igrr
Could it be because the nointerrupts() call is interfering with the ability of the chip to receive server data? I'm pretty new at this so I'm clutching at straws a little.
edit: been working (with many compiles and uploads) for over an hour now. I think the delay has fixed it
SwiCago wrote:Comment out the Neopixel code. This will help determine if it is the webserver library or neopixelbus library. If it still hangs, then you can try disabling webserver and reenable neopixel and make it do things randomly, watch the serial see if it hangs again. If it does, it could be something even lower level. In which case just use a simple loop that does nothing but print the time and delay 100ms..if that hangs, then it is at the core of arduino and a bug must be posted. I personally never test any of the ESPs for longer than 10minutes. But I have not heard of anyone else having issues with webserver, hence my hunch on neopixel.
Can either of you say how long it takes till it hangs?
Heya,
It does not hang, it just stops responding to http queries, loop() part works fine, I've added Serial.println("*barf*"); and that barfing does not stop over serial line ever. Even tried -
void loop() {
if ( WiFi.status() == WL_CONNECTED ) {
server.handleClient();
} else {
Serial.println("Disconnected");
delay(2000);
}
}
it never prints "Disconnected",
gonna try with removing NeoPixel stuff too ..
--
Mozz