Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PORT OPEN 9600
- =node.heap()
- =node.heap()
- 21888
- > file.remove("script1.lua");
- file.open("script1.lua","w+");
- w = fi> iFi_24","13551369")]==]);
- w([==[print(wifi.sta.getip())]==]);
- w([==[led1 = 3]==]);
- w([==[led2 = 4]==]);
- w([==[gpio.mode(led1, gpio.OUTPUT)]==]);
- w([==[gpio.mode(led2, gpio.OUTPUT)]==]);
- w([==[srv=net.createServer(net.TCP)]==]);
- w([==[srv:listen(80,function(conn)]==]);
- w([==[ conn:on("receive", function(client,request)]==]);
- w([==[ local buf = "";]==]);
- w([==[ local _, _, method, path, vars = string.find(request, "(\[A-Z]+) (.+)?(.+) HTTP");]==]);
- w([==[ if(method == nil)then]==]);
- w([==[ _, _, method, path = string.find(request, "(\[A-Z]+) (.+) HTTP");]==]);
- w([==[ end]==]);
- w([==[ local _GET = {}]==]);
- w([==[ if (vars ~= nil)then]==]);
- w([==[ for k, v in string.gmatch(vars, "(%w+)=(%w+)&*") do]==]);
- w([==[ _GET[k] = v]==]);
- w([==[ end]==]);
- w([==[ end]==]);
- w([==[ buf = buf.."<h1> ESP8266 Web Server</h1>";]==]);
- w([==[ buf = buf.."<p>GPIO0 <a href=\"?pin=ON1\"><button>ON</button></a> <a href=\"?pin=OFF1\"><button>OFF</button></a></p>";]==]);
- w([==[ buf = buf.."<p>GPIO2 <a href=\"?pin=ON2\"><button>ON</button></a> <a href=\"?pin=OFF2\"><button>OFF</button></a></p>";]==]);
- w([==[ local _on,_off = "",""]==]);
- w([==[ if(_GET.pin == "ON1")then]==]);
- w([==[ gpio.write(led1, gpio.HIGH);]==]);
- w([==[ elseif(_GET.pin == "OFF1")then]==]);
- w([==[ gpio.write(led1, gpio.LOW);]==]);
- w([==[ elseif(_GET.pin == "ON2")then]==]);
- w([==[ gpio.write(led2, gpio.HIGH);]==]);
- w([==[ elseif(_GET.pin == "OFF2")then]==]);
- w([==[ gpio.write(led2, gpio.LOW);]==]);
- w([==[ end]==]);
- w([==[ client:send(buf);]==]);
- w([==[ client:close();]==]);
- w([==[ collectgarbage();]==]);
- w([==[ end)]==]);
- w([==[end)]==]);
- file.close();
- dofile("script1.lua");
- stdin:1: '<eof>' expected near 'end'
- >
- Total : 549941 bytes
- Used : 251 bytes
- Remain: 549690 bytes
- >
- file.remove("script1.lua");
- file.remove("script1.lua");
- >
- Total : 549941 bytes
- Used : 0 bytes
- Remain: 549941 bytes
- > file.remove("script1.lua");
- f>> ile.open("script1.lua","w+");
- w = file.writeline
- w([==[wifi.setmode(wifi.STATION)]==]);
- w([==[wifi.sta.config("Vascon_WiFi_24","13551369")]==]);
- w([==[print(wifi.sta.getip())]==]);
- w([==[led1 = 3]==]);
- w([==[led2 = 4]==]);
- w([==[gpio.mode(led1, gpio.OUTPUT)]==]);
- w([==[gpio.mode(led2, gpio.OUTPUT)]==]);
- w([==[srv=net.createServer(net.TCP)]==]);
- w([==[srv:listen(80,function(conn)]==]);
- w([==[ conn:on("receive", function(client,request)]==]);
- w([==[ local buf = "";]==]);
- w([==[ local _, _, method, path, vars = string.find(request, "(\[A-Z]+) (.+)?(.+) HTTP");]==]);
- w([==[ if(method == nil)then]==]);
- w([==[ _, _, method, path = string.find(request, "(\[A-Z]+) (.+) HTTP");]==]);
- w([==[ end]==]);
- w([==[ local _GET = {}]==]);
- w([==[ if (vars ~= nil)then]==]);
- w([==[ for k, v in string.gmatch(vars, "(%w+)=(%w+)&*") do]==]);
- w([==[ _GET[k] = v]==]);
- w([==[ end]==]);
- w([==[ end]==]);
- w([==[ buf = buf.."<h1> ESP8266 Web Server</h1>";]==]);
- w([==[ buf = buf.."<p>GPIO0 <a href=\"?pin=ON1\"><button>ON</button></a> <a href=\"?pin=OFF1\"><button>OFF</button></a></p>";]==]);
- w([==[ buf = buf.."<p>GPIO2 <a href=\"?pin=ON2\"><button>ON</button></a> <a href=\"?pin=OFF2\"><button>OFF</button></a></p>";]==]);
- w([==[ local _on,_off = "",""]==]);
- w([==[ if(_GET.pin == "ON1")then]==]);
- w([==[ gpio.write(led1, gpio.HIGH);]==]);
- w([==[ elseif(_GET.pin == "OFF1")then]==]);
- w([==[ gpio.write(led1, gpio.LOW);]==]);
- w([==[ elseif(_GET.pin == "ON2")then]==]);
- w([==[ gpio.write(led2, gpio.HIGH);]==]);
- w([==[ elseif(_GET.pin == "OFF2")then]==]);
- w([==[ gpio.write(ledrЇ„Fк¦фD‹МьЊ¦„ОЊ¦ш
- NodeMCU 0.9.5 build 20150318 powered by Lua 5.1.4
- lua: cannot open init.lua
- >
- Total : 549941 bytes
- Used : 0 bytes
- Remain: 549941 bytes
- > file.remove("script1.lua");
- file.open("script1.lua","w+");
- w = fil> WiFi_24","13551369")]==]);
- w([==[print(wifi.sta.getip())]==]);
- w([==[led1 = 3]==]);
- w([==[led2 = 4]==]);
- w([==[gpio.mode(led1, gpio.OUTPUT)]==]);
- w([==[gpio.mode(led2, gpio.OUTPUT)]==]);
- w([==[srv=net.createServer(net.TCP)]==]);
- w([==[srv:listen(80,function(conn)]==]);
- w([==[ conn:on("receive", function(client,request)]==]);
- w([==[ local buf = "";]==]);
- w([==[ local _, _, method, path, vars = string.find(request, "(\[A-Z]+) (.+)?(.+) HTTP");]==]);
- w([==[ if(method == nil)then]==]);
- w([==[ _, _, method, path = string.find(request, "(\[A-Z]+) (.+) HTTP");]==]);
- w([==[ end]==]);
- w([==[ local _GET = {}]==]);
- w([==[ if (vars ~= nil)then]==]);
- w([==[ for k, v in string.gmatch(vars, "(%w+)=(%w+)&*") do]==]);
- w([==[ _GET[k] = v]==]);
- w([==[ end]==]);
- w([==[ end]==]);
- w([==[ buf = buf.."<h1> ESP8266 Web Server</h1>";]==]);
- w([==[ buf = buf.."<p>GPIO0 <a href=\"?pin=ON1\"><button>ON</button></a> <a href=\"?pin=OFF1\"><button>OFF</button></a></p>";]==]);
- w([==[ buf = buf.."<p>GPIO2 <a href=\"?pin=ON2\"><button>ON</button></a> <a href=\"?pin=OFF2\"><button>OFF</button></a></p>";]==]);
- w([==[ local _on,_off = "",""]==]);
- w([==[ if(_GET.pin == "ON1")then]==]);
- w([==[ gpio.write(led1, gpio.HIGH);]==]);
- w([==[ elseif(_GET.pin == "OFF1")then]==]);
- w([==[ gpio.write(led1, gpio.LOW);]==]);
- w([==[ elseif(_GET.pin == "ON2")then]==]);
- w([==[ gpio.write(led2, gpio.HIGH);]==]);
- w([==[ elseif(_GET.pin == "OFF2")then]==]);
- w([==[ gpio.write(led2, gpio.LOW);]==]);
- w([==[ end]==]);
- w([==[ client:send(buf);]==]);
- w([==[ client:close();]==]);
- w([==[ collectgarbage();]==]);
- w([==[ end)]==]);
- w([==[end)]==]);
- file.close();
- dofile("script1.lua");
- stdin:1: unexpected symbol near '['
- >
- Total : 549941 bytes
- Used : 251 bytes
- Remain: 549690 bytes
- >
- file.remove("script1.lua");
- file.remove("script1.lua");
- >
- Total : 549941 bytes
- Used : 0 bytes
- Remain: 549941 bytes
- > file.remove("script1.lua");
- file.open("script1.lua","w+");
- w >> = file.writeline
- w([==[wifi.setmode(wifi.STATION)]==]);
- w([==[wifi.sta.config("Vascon_WiFi_24","13551369")]==]);
- w([==[print(wifi.sta.getip())]==]);
- w([==[led1 = 3]==]);
- w([==[led2 = 4]==]);
- w([==[gpio.mode(led1, gpio.OUTPUT)]==]);
- w([==[gpio.mode(led2, gpio.OUTPUT)]==]);
- w([==[srv=net.createServer(net.TCP)]==]);
- w([==[srv:listen(80,function(conn)]==]);
- w([==[ conn:on("receive", function(client,request)]==]);
- w([==[ local buf = "";]==]);
- w([==[ local _, _, method, path, vars = string.find(request, "(\[A-Z]+) (.+)?(.+) HTTP");]==]);
- w([==[ if(method == nil)then]==]);
- w([==[ _, _, method, path = string.find(request, "(\[A-Z]+) (.+) HTTP");]==]);
- w([==[ end]==]);
- w([==[ local _GET = {}]==]);
- w([==[ if (vars ~= nil)then]==]);
- w([==[ for k, v in string.gmatch(vars, "(%w+)=(%w+)&*") do]==]);
- w([==[ _GET[k] = v]==]);
- w([==[ end]==]);
- w([==[ end]==]);
- w([==[ buf = buf.."<h1> ESP8266 Web Server</h1>";]==]);
- w([==[ buf = buf.."<p>GPIO0 <a href=\"?pin=ON1\"><button>ON</button></a> <a href=\"?pin=OFF1\"><button>OFF</button></a></p>";]==]);
- w([==[ buf = buf.."<p>GPIO2 <a href=\"?pin=ON2\"><button>ON</button></a> <a href=\"?pin=OFF2\"><button>OFF</button></a></p>";]==]);
- w([==[ local _on,_off = "",""]==]);
- w([==[ if(_GET.pin == "ON1")then]==]);
- w([==[ gpio.write(led1, gpio.HIGH);]==]);
- w([==[ elseif(_GET.pin == "OFF1")then]==]);
- w([==[ gpio.write(led1, gpio.LOW);]==]);
- w([==[ elseif(_GET.pin == "ON2")then]==]);
- w([==[ gpio.write(led2, gpio.HIGH);]==]);
- w([==[ elseif(_GET.pin == "OFF2")then]==]);
- w([==[ gpio.write(led2, gpio.LOW);]==]);
- w([==[ end]==]);
- w([==[ client:send(buf);]==]);
- w([==[ client:close();]==]);
- w([==[ collectgarbage();]==]);
- w([==[ end)]==]);
- w([==[end)]==]);
- file.close();
- dofile("script1.lua");
- stdin:2: '=' expected near ';'
- >
- file.remove("script1.lua");
- file.remove("script1.lua");
- >
- Total : 549941 bytes
- Used : 0 bytes
- Remain: 549941 bytes
- > file.remove("script1.lua");
- file.open("script1.lua","w+");
- w = file> iFi_24","13551369")]==]);
- w([==[print(wifi.sta.getip())]==]);
- w([==[led1 = 3]==]);
- w([==[led2 = 4]==]);
- w([==[gpio.mode(led1, gpio.OUTPUT)]==]);
- w([==[gpio.mode(led2, gpio.OUTPUT)]==]);
- w([==[srv=net.createServer(net.TCP)]==]);
- w([==[srv:listen(80,function(conn)]==]);
- w([==[ conn:on("receive", function(client,request)]==]);
- w([==[ local buf = "";]==]);
- w([==[ local _, _, method, path, vars = string.find(request, "(\[A-Z]+) (.+)?(.+) HTTP");]==]);
- w([==[ if(method == nil)then]==]);
- w([==[ _, _, method, path = string.find(request, "(\[A-Z]+) (.+) HTTP");]==]);
- w([==[ end]==]);
- w([==[ local _GET = {}]==]);
- w([==[ if (vars ~= nil)then]==]);
- w([==[ for k, v in string.gmatch(vars, "(%w+)=(%w+)&*") do]==]);
- w([==[ _GET[k] = v]==]);
- w([==[ end]==]);
- w([==[ end]==]);
- w([==[ buf = buf.."<h1> ESP8266 Web Server</h1>";]==]);
- w([==[ buf = buf.."<p>GPIO0 <a href=\"?pin=ON1\"><button>ON</button></a> <a href=\"?pin=OFF1\"><button>OFF</button></a></p>";]==]);
- w([==[ buf = buf.."<p>GPIO2 <a href=\"?pin=ON2\"><button>ON</button></a> <a href=\"?pin=OFF2\"><button>OFF</button></a></p>";]==]);
- w([==[ local _on,_off = "",""]==]);
- w([==[ if(_GET.pin == "ON1")then]==]);
- w([==[ gpio.write(led1, gpio.HIGH);]==]);
- w([==[ elseif(_GET.pin == "OFF1")then]==]);
- w([==[ gpio.write(led1, gpio.LOW);]==]);
- w([==[ elseif(_GET.pin == "ON2")then]==]);
- w([==[ gpio.write(led2, gpio.HIGH);]==]);
- w([==[ elseif(_GET.pin == "OFF2")then]==]);
- w([==[ gpio.write(led2, gpio.LOW);]==]);
- w([==[ end]==]);
- w([==[ client:send(buf);]==]);
- w([==[ client:close();]==]);
- w([==[ collectgarbage();]==]);
- w([==[ end)]==]);
- w([==[end)]==]);
- file.close();
- dofile("script1.lua");
- stdin:1: '<eof>' expected near 'end'
- >
- Total : 549941 bytes
- Used : 251 bytes
- Remain: 549690 bytes
- >
- file.remove("script1.lua");
- file.remove("script1.lua");
- >
- Total : 549941 bytes
- Used : 0 bytes
- Remain: 549941 bytes
- > file.remove("script1.lua");
- file.open("script1.lua","w+");
- > "Vascon_WiFi_24","13551369")]==]);
- w([==[print(wifi.sta.getip())]==]);
- w([==[led1 = 3]==]);
- w([==[led2 = 4]==]);
- w([==[gpio.mode(led1, gpio.OUTPUT)]==]);
- w([==[gpio.mode(led2, gpio.OUTPUT)]==]);
- w([==[srv=net.createServer(net.TCP)]==]);
- w([==[srv:listen(80,function(conn)]==]);
- w([==[ conn:on("receive", function(client,request)]==]);
- w([==[ local buf = "";]==]);
- w([==[ local _, _, method, path, vars = string.find(request, "(\[A-Z]+) (.+)?(.+) HTTP");]==]);
- w([==[ if(method == nil)then]==]);
- w([==[ _, _, method, path = string.find(request, "(\[A-Z]+) (.+) HTTP");]==]);
- w([==[ end]==]);
- w([==[ local _GET = {}]==]);
- w([==[ if (vars ~= nil)then]==]);
- w([==[ for k, v in string.gmatch(vars, "(%w+)=(%w+)&*") do]==]);
- w([==[ _GET[k] = v]==]);
- w([==[ end]==]);
- w([==[ end]==]);
- w([==[ buf = buf.."<h1> ESP8266 Web Server</h1>";]==]);
- w([==[ buf = buf.."<p>GPIO0 <a href=\"?pin=ON1\"><button>ON</button></a> <a href=\"?pin=OFF1\"><button>OFF</button></a></p>";]==]);
- w([==[ buf = buf.."<p>GPIO2 <a href=\"?pin=ON2\"><button>ON</button></a> <a href=\"?pin=OFF2\"><button>OFF</button></a></p>";]==]);
- w([==[ local _on,_off = "",""]==]);
- w([==[ if(_GET.pin == "ON1")then]==]);
- w([==[ gpio.write(led1, gpio.HIGH);]==]);
- w([==[ elseif(_GET.pin == "OFF1")then]==]);
- w([==[ gpio.write(led1, gpio.LOW);]==]);
- w([==[ elseif(_GET.pin == "ON2")then]==]);
- w([==[ gpio.write(led2, gpio.HIGH);]==]);
- w([==[ elseif(_GET.pin == "OFF2")then]==]);
- w([==[ gpio.write(led2, gpio.LOW);]==]);
- w([==[ end]==]);
- w([==[ client:send(buf);]==]);
- w([==[ client:close();]==]);
- w([==[ collectgarbage();]==]);
- w([==[ end)]==]);
- w([==[end)]==]);
- file.close();
- dofile("script1.lua");
- stdin:1: unexpected symbol near ']'
- >
- Total : 549941 bytes
- Used : 251 bytes
- Remain: 549690 bytes
- >
- file.remove("script1.lua");
- file.remove("script1.lua");
- >
- Total : 549941 bytes
- Used : 0 bytes
- Remain: 549941 bytes
- > file.remove("script1.lua");
- file.open("script1.lua","w+");
- w = file.writeline
- w([==[wifi.set>> mode(wifi.STATION)]==]);
- w([==[wifi.sta.config("Vascon_WiFi_24","13551369")]==]);
- w([==[print(wifi.sta.getip())]==]);
- w([==[led1 = 3]==]);
- w([==[led2 = 4]==]);
- w([==[gpio.mode(led1, gpio.OUTPUT)]==]);
- w([==[gpio.mode(led2, gpio.OUTPUT)]==]);
- w([==[srv=net.createServer(net.TCP)]==]);
- w([==[srv:listen(80,function(conn)]==]);
- w([==[ conn:on("receive", function(client,request)]==]);
- w([==[ local buf = "";]==]);
- w([==[ local _, _, method, path, vars = string.find(request, "(\[A-Z]+) (.+)?(.+) HTTP");]==]);
- w([==[ if(method == nil)then]==]);
- w([==[ _, _, method, path = string.find(request, "(\[A-Z]+) (.+) HTTP");]==]);
- w([==[ end]==]);
- w([==[ local _GET = {}]==]);
- w([==[ if (vars ~= nil)then]==]);
- w([==[ for k, v in string.gmatch(vars, "(%w+)=(%w+)&*") do]==]);
- w([==[ _GET[k] = v]==]);
- w([==[ end]==]);
- w([==[ end]==]);
- w([==[ buf = buf.."<h1> ESP8266 Web Server</h1>";]==]);
- w([==[ buf = buf.."<p>GPIO0 <a href=\"?pin=ON1\"><button>ON</button></a> <a href=\"?pin=OFF1\"><button>OFF</button></a></p>";]==]);
- w([==[ buf = buf.."<p>GPIO2 <a href=\"?pin=ON2\"><button>ON</button></a> <a href=\"?pin=OFF2\"><button>OFF</button></a></p>";]==]);
- w([==[ local _on,_off = "",""]==]);
- w([==[ if(_GET.pin == "ON1")then]==]);
- w([==[ gpio.write(led1, gpio.HIGH);]==]);
- w([==[ elseif(_GET.pin == "OFF1")then]==]);
- w([==[ gpio.write(led1, gpio.LOW);]==]);
- w([==[ elseif(_GET.pin == "ON2")then]==]);
- w([==[ gpio.write(led2, gpio.HIGH);]==]);
- w([==[ elseif(_GET.pin == "OFF2")then]==]);
- w([==[ gpio.write(led2, gpio.LOW);]==]);
- w([==[ end]==]);
- w([==[ client:send(buf);]==]);
- w([==[ client:close();]==]);
- w([==[ collectgarbage();]==]);
- w([==[ end)]==]);
- w([==[end)]==]);
- file.close();
- dofile("script1.lua");
- stdin:1: attempt to call field 'writelinew' (a nil value)
- >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement