The problem with files
Posted: Tue Jan 06, 2015 8:53 pm
Despite improvements in the new firmware NodeMcu 0.9.5 build 20150106 problems with files not diminished.
Try this script:
Will be written to files...
20K3.txt size: 14080
20K2.txt size: 20480
20K1.txt size: 20480
...after which the module is restarted.
An attempt to remove any of these files...
...also resets the module (file is not deleted).
What to do?
Try this script:
Code: Select all
for j=1,50 do
print("20K"..j)
file.open("20K"..j..".txt", "w")
for i=1,1280 do
file.writeline('0123456789ABCDE')
end
file.close()
end
Will be written to files...
20K3.txt size: 14080
20K2.txt size: 20480
20K1.txt size: 20480
...after which the module is restarted.
An attempt to remove any of these files...
Code: Select all
file.remove("20K1.txt")
...also resets the module (file is not deleted).
What to do?