The HEAP issue is coming up again... making little toy projects you don't have a problem..
Here's where I'm up to.
I have a FILE I can call which:
Creates a timer function which depending on a counter will: initialise the connection to the router, start reading the Dallas chips (once every 20 seconds - and I've split the function to eliminate the delay) - then setup a TCP/IP listener to respond to remote controls to turn an output on and off.
If I set up a couple of variables and DOFILE this- it works reliably.
If I put the variables into the init.lua and call the DOFILE - the board goes into a loop
If I put the variables into the init.lua and start off a one-off timer and have THAT call DOFILE - the board goes into a loop.
If I do it manually and then STOP the timer that is overseeing all of this.... I find I have something like 5k of RAM left - from experience I know that it takes VERY LITTLE to crash the board with that amount of RAM.
Can you further speed up the HEAP recovery and is there anything else you can do to retrieve RAM?
Pete.