Hi
I am playing around with the Tutorial for the ESP board - ESP8266 - WiFi Remote Configuration
I've been trying to get it to actually output HTML so that it presents a web page of sorts when you go to the IP, without success.
I am VERY new to all this, so please be patient!
My Code looks like this:
If Main.WiFi.IsConnected Then
Astream.Write("Connected to network.").Write(CRLF)
Astream.Write("ESP8266 IP address: ").Write(Main.WiFi.LocalIp)
Astream.Write("<HTML>").Write(CRLF)
Astream.Write("<HEAD>").Write(CRLF)
Astream.Write("<TITLE> title of page</TITLE >").Write(CRLF)
Astream.Write("</HEAD>").Write(CRLF)
Astream.Write("<BODY>").Write(CRLF)
Astream.Write("<p>HELLO</p>").Write(CRLF)
Astream.Write("write what you like here:").Write(CRLF)
Astream.Write("</BODY >").Write(CRLF)
Astream.Write("</HTML >").Write(CRLF)
But the HTML doesn't work - it just shows all of that text with all the tags.
I obviously don't quite understand what the Astream is doing...
I just want the ESP board to act as a web server and to present a page to the user.
Thanks
JMB the Noob
I am playing around with the Tutorial for the ESP board - ESP8266 - WiFi Remote Configuration
I've been trying to get it to actually output HTML so that it presents a web page of sorts when you go to the IP, without success.
I am VERY new to all this, so please be patient!
My Code looks like this:
If Main.WiFi.IsConnected Then
Astream.Write("Connected to network.").Write(CRLF)
Astream.Write("ESP8266 IP address: ").Write(Main.WiFi.LocalIp)
Astream.Write("<HTML>").Write(CRLF)
Astream.Write("<HEAD>").Write(CRLF)
Astream.Write("<TITLE> title of page</TITLE >").Write(CRLF)
Astream.Write("</HEAD>").Write(CRLF)
Astream.Write("<BODY>").Write(CRLF)
Astream.Write("<p>HELLO</p>").Write(CRLF)
Astream.Write("write what you like here:").Write(CRLF)
Astream.Write("</BODY >").Write(CRLF)
Astream.Write("</HTML >").Write(CRLF)
But the HTML doesn't work - it just shows all of that text with all the tags.
I obviously don't quite understand what the Astream is doing...
I just want the ESP board to act as a web server and to present a page to the user.
Thanks
JMB the Noob