ESP8266 Webserver Project

Moderator: Sprite_tm

User avatar
By rw86347
#16634 I have an almost unmodified httpd server running on my Olimex esp8266.

I have made two changes.

1) I changed the LED to GPIO 5 so that it can control the relay on the olimex board.

2) I am using the SPI bus to talk with a shift register.

I have found that after about 4 hours the web server quits running. However the interrupt routine that services my SPI bus is still running. My thought is that something has a memory leak or the SPI bus is causing some sort of interference. Any ideas?

Has anyone else had a similar experience?
User avatar
By Sprite_tm
#16646 What version of esphttpd (and from which source) and sdk do you use? Is the power supply for your board adequate? Also, it's known that if you connect to the HTTP server lots of times, memory can get pretty low because every connection will eat up some memory for about a minute after it's closed. Could that be happening in your case? Also, there has been a small leak in the tpl engine which leaks <100 bytes per request but that's fixed in the latest version in git.

If it helps, I've got various instances of esphttpd running all over the place and I've got uptimes of weeks at least.