Skip to content

Instantly share code, notes, and snippets.

@ktinkerer
Created March 9, 2017 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ktinkerer/d53392fbd726e01632d1ac193434e956 to your computer and use it in GitHub Desktop.
Save ktinkerer/d53392fbd726e01632d1ac193434e956 to your computer and use it in GitHub Desktop.
Connecting NodeMCU to wifi using enduser setup.
-- file: connect.lua
local module = {}
function module.start()
enduser_setup.start(
function()
print("Connected to wifi as: " .. wifi.sta.getip())
end,
function(err, str)
print("enduser_setup: Err #" .. err .. ": " .. str)
end
);
end
return module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment