out of memory running httpServer to control WS2812
Posted: Thu Apr 23, 2015 4:24 am
I created a small set of modules to control a WS2812 matrix using a httpServer.
Source is available on github
Even having only a small set of functions, I'm running out of memory very soon.
Is there a guideline to save memory ?
Is there any help to control memory consumption ?
In my example, heap is less than 4k, and collectgarbage("count") is 15.
After 2nd request to httpServer it runs out of memory.
Had to remove function for httpClient to get it running.
Source is available on github
Even having only a small set of functions, I'm running out of memory very soon.
Is there a guideline to save memory ?
Is there any help to control memory consumption ?
In my example, heap is less than 4k, and collectgarbage("count") is 15.
After 2nd request to httpServer it runs out of memory.
Had to remove function for httpClient to get it running.