Current Lua downloadable firmware will be posted here

User avatar
By tiawild
#36738 Hi
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:

Image

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.

Code: Select allwifi.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
User avatar
By TerryE
#37844 Yes, but you should really use a current build. Master is at SDK version 1.4 not 0.96.
User avatar
By tiawild
#38337 OK, thank you!! I have tested it with 1.4 version and now AP function works well :D

I have used a compiled version from NodeMCU custom builds site (http://nodemcu-build.com/) but I have tried to make it myself reading forum (viewtopic.php?f=9&t=820&p=4639#p4639).
I can't make it because compiler tells me:

Code: Select alluser_exceptions.c:111:5: error: implicit declaration of function '__real__xtos_set_exception_handler' [-Werror=implicit-function-declaration]
     __real__xtos_set_exception_handler (cause, fn);


What is wrong ? :|