Remove print about server running from server code itself. Client can choose to do the prints from init.lua if client wants to, This seems more appropritate.
This commit is contained in:
@@ -155,11 +155,6 @@ return function (port)
|
||||
|
||||
end
|
||||
)
|
||||
-- false and nil evaluate as false
|
||||
local ip = wifi.sta.getip()
|
||||
if not ip then ip = wifi.ap.getip() end
|
||||
if not ip then ip = "unknown IP" end
|
||||
print("nodemcu-httpserver running at http://" .. ip .. ":" .. port)
|
||||
return s
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user