NodeMcu 0.9.2 build 20141207 powered by Lua 5.1.4
> print(node.heap())
8840
yes8s wrote:I've been testing this implementation for a few days now and for the most part it works great. I did make a couple of little modifications to better handle post requests and I'm also running a few additional functions for my applications.
When I embed lua code into the pht file I get a reset when I request the page from a browser. I've narrowed it down to the docode function being the cause. If I replace the function to just print heap to the console and return back the non decoded text, it is ok. I'm suspecting it may be a memory issue.
The heap is at about 5kb at the docode function that has been stripped back (as explained above). Obviously, when the original function is used the heap usage would be greater due to additional code and variables.
I'm curious, what is your heap at when you get to this function? Can somebody do a print heap inside the function and report?
Memory is starting to become an issue when you try to build an application that has a server and other functions and variables. The server part alone on my esp consumes over half the heap. I'm worried we've hit the wall too early.
Lets get the party started and +1
[url=https://www.banggood.com/custlink/KvGGhGF4wG[/url]
I like ESP8266 and ESP8285 and ESP32