Skip to content

Webserver not working and causes WiFi to disconnect #612

Answered by achronoxx
achronoxx asked this question in Q&A
Discussion options

You must be logged in to vote

SUCCESS - I got the Webserver to work!

I figured out how to reduce the number of LED Buffers. I simply added #define MAX_BUFFERS 2 in the globals file under the DEMO project,

I'm not sure why the DEMO project does not limit the buffers, as it only runs one effect, so it uses the default value at the end of Globals which is MAX_BUFFERS=500 buffer. Not sure why the default is so high, as a smaller number would be safer??

With only 2 buffers (using 928bytes) it leaves me with ~197KB of memory, which is much better than the ~55KB before.

For reference, this is the code in systemcontainer.h that calculates the number of buffers:

    #if USE_PSRAM
        uint32_t memtouse = ESP.getFreePsram() …

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@achronoxx
Comment options

Comment options

You must be logged in to vote
3 replies
@achronoxx
Comment options

Answer selected by achronoxx
@rbergen
Comment options

@achronoxx
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants