Re: Creating a nodeMCU Lua unofficial FAQ
Posted: Mon Jun 01, 2015 3:41 pm
I've just uploaded another tranche of edits and content.
-->
Open Community Forum for ESP8266, Come share Arduino and IoT (Internet of Things)
https://www.esp8266.com/
local module ... -- this is a situation where using an upvalue is essential!
return function (csocket)
package.loaded[module]=nil
module = nil
-- . . .
end
local spl ...
return function split(inputstr, sep)
if sep == nil then
sep = "%s"
end
local t={}
local i=1
for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
t[i] = str
i = i + 1
end
package.loaded['spl']=nil
spl=nil
return t
end
local module = ...
package.loaded[module]=nil