-->
Page 1 of 1

Save HTML for ESP8266WebServer

PostPosted: Sun Jul 05, 2015 12:52 pm
by Burricios
Hi,
I am trying to make a webserver with the ESP8266. I have no problem with the server setup, but I want the server to serve an html file to the client when a connection is made. I know about function ESP8266WebServer::send(..), but that only allows me to send a line. How can i do it to save the html file's text into the ESP8266 (a variable, file, whatever) and get it sent to the client? I could write each line to a different String and send the one by one... But that doesnt seem very neet.

Any help is appreciated.
Thanks!

Re: Save HTML for ESP8266WebServer

PostPosted: Mon Jul 06, 2015 10:47 am
by Burricios
Forget the question, I inserted the whole html in a single sting and sent it at once. However, i had to break the string declaration in several lines, otherwise i got a java exception.
Thanks anyway.

BTW: I dont see it very usefull to have to wait for the topic to be approved, if it takes so long to get approved (more than 24H). But anyway...

Re: Save HTML for ESP8266WebServer

PostPosted: Mon Jul 06, 2015 11:08 am
by kolban
Approval? I hope not. My experience seems to show that when I post a new topic, it "just appears". I hope that is what is happening for all of us.

Re: Save HTML for ESP8266WebServer

PostPosted: Mon Jul 06, 2015 12:50 pm
by martinayotte
Maybe this 24hrs delay is only for new accounts to avoid getting spams.