- Mon Nov 24, 2014 9:47 am
#3229
ThomasW - great minds think alike - I've just seen your response and indeed the pesky lack of RAM situation was responsible - putting it in a file did the trick.
It would be nice however if the interpreter were able to simple say "Sorry, out of RAM" instead of crashing or rebooting". Also there may be a bug? Not sure about this one..
My line that says sv=net.createServer(net.TCP, 90)
that 90 isn't doing anything - if I shut my APP down for a few minutes (ie turn the phone off) nothing happens - no message to say the connection is closed or anything. If I then after minutes, turn the phone back on - it just continues as if it had never stopped (which I might add is a darn sight better than I got out of the AT command set with it's constant "busy s..." - so this is looking like it might be going somewhere.
If anyone looking in knows how, instead of those " then c:send(L1" statements I can have the unit wait at the serial for a little while for some input and send that, I would be eternally grateful - in this application it will be an Arduino being informed of those commands.... and doing something about them - and then firing a response almost immediately back at the board...
so if (pl=="GO1\n") then c:send(l1)
in English... needs to be
if pl=="GO1\n" then send that out of the serial, wait a bit - c:send the response.. and continue as before
So the other test elseifs are not needed. Thoughts?