I can't find a solution and for me it's strange because it seems a big issue.
I'm testing a board like this:
I have a Lua Firmware ( nodemcu_integer_0.9.6-dev_20150704 ) and I can't use wifi configured as access point but only as a client.
wifi.ap.config({ssid="ESP8266",pwd="12345678"})
wifi.setmode(wifi.SOFTAP)
srv=net.createServer(net.TCP)
srv:listen(80,function(conn)
conn:on("receive",function(conn, payload)
print(payload)
conn:send("Hello")
end)
conn:on("sent",function(conn)
conn:close()
end)
end)
In this case I can see in a loop the client (my smartphone) that acquires an IP address, is connected (1 second) then it loses connection.
I have seen an articol about this problem:
http://bbs.espressif.com/viewtopic.php?t=379
Is there a solution for a NodeMCU firmware?
Many thanks