i'am building a simple AP web server:
wifi.setmode(wifi.SOFTAP)
wifi.ap.config({ssid="myssid",pwd="password"})
wifi.ap.setip({ip="192.168.1.204",netmask="255.255.255.0",gateway="192.168.1.254"})
srv=net.createServer(net.TCP)
srv:listen(80,function(conn)
conn:on("receive", function(client,request)
local buf = "";
buf = buf.."<h1> myAP server </h1>";
buf = buf.."<h2> 192.168.1.254</h2>";
...
client:send(buf);
client:close();
collectgarbage();
end)
end)
the code work fine with version Nodemncu 0.9.6. With new version 2.0.0 master (mudules wifi,net,file,gpio..) the connection at ip_address fail : Google/Firefox show "ERR_CONNECTION_TIMED_OUT".
I execute the file.format without solution.
Can help me ?
Thanks