I have to use Chrome.
I have to use Chrome.
Explore... Chat... Share...
MK1888 wrote:Lesson #1 in troubleshooting: Start with the simplest configuration that works and then move up in complexity.
You have a bunch of things going on. Get a very simple webserver working first. Can you serve HTML to your Safari browser? Like this: <html><body><h1>blah</h1></body></html>
Then add things one at a time until it breaks.
EDIT: By the way...the HTML that you are producing in your last post is not valid. You can't start an HTML page with <font>.
wifi.ap.config({ssid="NODEDUINO",pwd=""})
wifi.setmode(wifi.SOFTAP)
if srv then
srv:close()
end
srv=net.createServer(net.TCP,30)
srv:listen(80,function(conn)
conn:on("receive",function(conn, payload)
print(payload)
if string.sub(payload, 1, 6) == 'GET / ' then
conn:send("HTTP/1.1 200 OK\r\n")
conn:send("<html><body><h1>ESP8266 Web Server</h1></body></html>")
end
end)
conn:on("sent",function(conn)
conn:close()
end)
end)
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]