NodeMCU firmware detected.
=node.heap()
30160
> file.remove("script1.lua");
> file.open("script1.lua","w+");
> w = file.writeline
> w([[local i=1]]);
> w([[while 1 do]]);
> w([[file.open("x.txt","a") ]]);
> w([[file.writeline("0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")]]);
> w([[file.close() ]]);
> w([[tmr.wdclr()]]);
> w([[i=i+1]]);
> w([[print(i)]]);
> w([[end]]);
> file.close();
> dofile("script1.lua");
> node.compile('script1.lua')
----------------------------
http-example.lc : 540 bytes
http-example.lua : 1419 bytes
http.lc : 2680 bytes
http.lua : 6624 bytes
init.lc : 232 bytes
init.lua : 91 bytes
script1.lc : 352 bytes
script1.lua : 209 bytes
----------------------------
Total file(s) : 8
Total size : 12147 bytes
> r,u,t=file.fsinfo() print("Total : "..t.." bytes\r\nUsed : "..u.." bytes\r\nRemain: "..r.." bytes\r\n") r=nil u=nil t=nil
Total : 14932241 bytes
Used : 15060 bytes
Remain: 14917181 bytes
> dofile("script1.lc")
2
3
4
5
6
.... Вырезал, т.к. очень длинное
6893
6894
6895
8џю‚ѓѓ›cXћ†}ЋОэ <- Нажал RTS в ESPLorer
EspLua.ru 1.2.0 build 20150710 powered by Lua 5.1.4
>
----------------------------
http-example.lc : 540 bytes
http-example.lua : 1419 bytes
http.lc : 2680 bytes
http.lua : 6624 bytes
init.lc : 232 bytes
init.lua : 91 bytes
script1.lc : 352 bytes
script1.lua : 209 bytes
x.txt : 696294 bytes
----------------------------
Total file(s) : 9
Total size : 708441 bytes
Total : 14932241 bytes
Used : 717358 bytes
Remain: 14214883 bytes
> =file.fsstat()
0 idid/dd/d/d/d/d era_cnt: N/A
1 i/ddd/i//////// era_cnt: N/A
2 /////////////// era_cnt: N/A
3 /////////////// era_cnt: N/A
4 /////////////// era_cnt: N/A
5 /////////////// era_cnt: N/A
6 /////////////// era_cnt: N/A
7 /////dd/d/d/d/d era_cnt: N/A
8 /d/d/d/d/d/d/d/ era_cnt: N/A
9 d/d/d//d/d/d/d/ era_cnt: N/A
10 d/d/d/d/d/d/di/ era_cnt: N/A
11 ddd/d/d/d/d/d/d era_cnt: N/A
12 /d/d/iid/ddi/d/ era_cnt: N/A
13 d//d///d//d///d era_cnt: N/A
14 //d///d//d///d/ era_cnt: N/A
15 /d///d//d///d// era_cnt: N/A
16 d///d//d///d//d era_cnt: N/A
17 ///d//d///d//d/ era_cnt: N/A
18 //d//d///d//d// era_cnt: N/A
19 /d//d///d//d/// era_cnt: N/A
20 d//d///d//d//d/ era_cnt: N/A
21 //d//d///d//d// era_cnt: N/A
22 /d//d///d//d/// era_cnt: N/A
23 d//d///d//d///d era_cnt: N/A
24 //d///d//d///d/ era_cnt: N/A
25 /d///d//d///d// era_cnt: N/A
26 d///d//d///d//d era_cnt: N/A
27 ///d//d///d//d/ era_cnt: N/A
28 //d//d//d///d// era_cnt: N/A
29 d///d//d///d//d era_cnt: N/A
.... Вырезал, т.к. очень длинное
652 d///d//d///d//d era_cnt: N/A
653 ///d//d///d//d/ era_cnt: N/A
654 //d//d///d//d// era_cnt: N/A
655 /d//d///d//d/// era_cnt: N/A
656 d//d///d//d///d era_cnt: N/A
657 //d//d///d//d// era_cnt: N/A
658 /d//d///d//d/// era_cnt: N/A
659 d//d///d//d///d era_cnt: N/A
660 //di___________ era_cnt: N/A
661 _______________ era_cnt: N/A
662 _______________ era_cnt: N/A
663 _______________ era_cnt: N/A
664 _______________ era_cnt: N/A
665 _______________ era_cnt: N/A
666 _______________ era_cnt: N/A
667 _______________ era_cnt: N/A
.... Вырезал, т.к. очень длинное
3964 _______________ era_cnt: N/A
3965 _______________ era_cnt: N/A
3966 _______________ era_cnt: N/A
3967 _______________ era_cnt: N/A
phys_addr: 0x00080000
phys_size: 16252928
era_cnt_max: 1
last_errno: -10072
blocks: 3968
free_blocks: 3307
page_alloc: 2858
page_delet: 7046
used: 717358 of 14932241
>