Current Lua downloadable firmware will be posted here

User avatar
By OpenThings
#2880 I am using python build a lib,features:
1.can upload LUA file to ESP8266.
2.using python xconsole into run LUA script.
3.using xcon_tcp.py to run LUA through wifi connection.
4.tcp/udp server/client for debug and auto-testing.

All source code at:
https://git.oschina.net/supergis/ESP8266App
Thanks your any suggestion.
User avatar
By OpenThings
#2881 A completed wifi xconsole for nodemcu on ESP8266:
Code: Select allprint("====Wicon, a LUA console over wifi.==========")
print("Author: openthings@163.com. copyright&GPL V2.")
print("Last modified 2014-11-19. V0.2")
print("Wicon Server starting ......")

function startServer()
   print("Wifi AP connected. Wicon IP:")
   print(wifi.sta.getip())
   sv=net.createServer(net.TCP)
   sv:listen(8080,   function(conn)
      print("Wifi console connected.")
   
      function s_output(str)
         if (conn~=nil)    then
            conn:send(str)
         end
      end
      node.output(s_output,1)

      conn:on("receive", function(conn, pl)
         node.input(pl)
         if (conn==nil)    then
            print("conn is nil.")
         end
      end)
      conn:on("disconnection",function(conn)
         node.output(nil)
      end)
   end)   
   print("Wicon Server running at :8080")
   print("===Now,Using xcon_tcp logon and input LUA.====")
end

tmr.alarm(1000, 1, function()
   if wifi.sta.getip()=="0.0.0.0" then
      print("Connect AP, Waiting...")
   else
      startServer()
      tmr.stop()
   end
end)

User avatar
By zeroday
#2885
rrezaii wrote:Is there support for WPS (wifi protected security). The module itself supports it according to the data sheet. It'd be great if NodeMcu provides support for it. Any plans ?

ESP8266 sdk have no api for WPS.
but it provide a way to sniffer.
so nodemcu have a way to get wifi config like cc3000.
Code: Select allwifi.startsmart()

will start sniffer for ssid and password.
use the android app same as cc3000.
no crypt supported.
not work in 11n, only work in 11b/g.