Skip to content

Instantly share code, notes, and snippets.

@danlu01
Created January 11, 2016 11:08
Show Gist options
  • Save danlu01/4d06ec4e1b7836f5a246 to your computer and use it in GitHub Desktop.
Save danlu01/4d06ec4e1b7836f5a246 to your computer and use it in GitHub Desktop.
esp test write loop
MyVars={}
test=1
tmr.alarm(5, 200, 1, function()
print(test)
file.remove("user.lua");
file.open("user.lua","w+");
for i=1, 60 do
file.writeline('MyVars['..i..']="MyVars'..i..'"')
end
file.close();
test=test+1
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment