- Mon Apr 27, 2015 5:59 pm
#15855
cal wrote:Moin,
may I suggest to try setting value to 0 or "" instead of function?
Do just want to get it fixed or do you want to understand the issue and probably fix it yourself?
Carsten
Sorry about the long delay on my reply, didn't realize the thread already had a second page.
As for just fixing it or understanding the issue, I'll take option B as I've been trying to figure it out on my own with no avail.
My apologies, I never posted the results of my attempt to use your previous solution (wifi.sta.getap(nil))
Code: Select all> =node.heap()
21784
> dofile("CheckAP.lua")
> myssid: 1a:fe:34:xx:xx:xx,-3
xfinitywifi: 96:1a:ca:xx:xx:xx,-88
Linksys_dd-wrt: 00:1d:7e:xx:xx:xx,-69
=node.heap()
return node.heap()
> =node.heap()
18048
The reason I ended up with (wifi.sta.getap(function() return end)) instead of (wifi.sta.getap(nil)) is because for some reason when I put anything else other than a function in the parentheses, the function doesn't terminate right and just echoes the next command I enter and never releases the memory.