loading
2 Comments

Tell us about yourself!

Complete Your Profile
  • SupotS commented on breagan22's instructable ESP8266 WiFi OTA Remote File Management2 months ago
    ESP8266 WiFi OTA Remote File Management

    Below is init.lua code.MyPersonalxxxxxx will be shown on wifi list.Connect to it and browse to 192.168.4.1 via webbrowser.Select your router ssid, fill password and save.Wait and see status. You can see IP address.Refresh webbrowser, If status not change. * build firmware with enduser_setup module.------------------------------------------------print("Start "..node.chipid())wifi.setmode(wifi.STATIONAP)wifi.ap.config({ssid="MyPersonal"..node.chipid(), auth=wifi.OPEN})enduser_setup.manual(true)enduser_setup.start( function() print("Connected to wifi as:" .. wifi.sta.getip()) --dofile("LampControl.lua") doServer() end, function(err, str) print("enduser_setup: Err #" .. err .. ": " .. str) end);function doServer() ...see more »Below is init.lua code.MyPersonalxxxxxx will be shown on wifi list.Connect to it and browse to 192.168.4.1 via webbrowser.Select your router ssid, fill password and save.Wait and see status. You can see IP address.Refresh webbrowser, If status not change. * build firmware with enduser_setup module.------------------------------------------------print("Start "..node.chipid())wifi.setmode(wifi.STATIONAP)wifi.ap.config({ssid="MyPersonal"..node.chipid(), auth=wifi.OPEN})enduser_setup.manual(true)enduser_setup.start( function() print("Connected to wifi as:" .. wifi.sta.getip()) --dofile("LampControl.lua") doServer() end, function(err, str) print("enduser_setup: Err #" .. err .. ": " .. str) end);function doServer() --wifi.setmode(wifi.STATION) --wifi.sta.config("front-tech1","frontwheeltech") --- SSID and Password for your LAN DHCP here --wifi.sta.connect() tmr.alarm(0,1000, tmr.ALARM_AUTO, function() if wifi.sta.getip() ~= nil then tmr.stop(0) print("System Info: ") print("IP: ") print(wifi.sta.getip()) majorVer, minorVer, devVer, chipid, flashid, flashsize, flashmode, flashspeed = node.info(); print("NodeMCU "..majorVer.."."..minorVer.."."..devVer.."\nFlashsize: "..flashsize.."\nChipID: "..chipid) print("FlashID: "..flashid.."\n".."Flashmode: "..flashmode.."\nHeap: "..node.heap()) -- get file system info remaining, used, total=file.fsinfo() print("\nFile system info:\nTotal : "..total.." Bytes\nUsed : "..used.." Bytes\nRemain: "..remaining.." Bytes") print("\nReady") dofile("servernode.lua") -- calls servernode.lua end end)end

    View Instructable »
  • SupotS commented on breagan22's instructable ESP8266 WiFi OTA Remote File Management2 months ago
    ESP8266 WiFi OTA Remote File Management

    It work great and freely ESP8266 from USB cable.I use EasyPHP Devserver as WebServer.No found any doubt on your code.Anyhow I add enduser_setup at first line of init.lua for easily to define SSID , Password and IP Address.

    View Instructable »