Re: Async Web Server --send multiline HTML?
Posted: Wed Oct 16, 2019 1:49 am
Having a hard time understanding the documentation; especially how use this code::
Do I want to use this code? Does it go inside of "index.h"?
Do I need to change from client.print to response->print syntax?
I did as you suggested and only used MAIN_page and dropped sizeof(MAIN_page). I think this is what you suggested. Also chared back to const char from uint8_t. Compiles; however no web page. Just says loading...
I will go back and read the documentation, again later today.
Thanks for your help.
William
Code: Select all
iAsyncWebServerResponse *response = request->beginResponse_P(200, "text/html", MAIN_page);
response->addHeader("Server","ESP Async Web Server");
request->send(response);
Do I want to use this code? Does it go inside of "index.h"?
Do I need to change from client.print to response->print syntax?
I did as you suggested and only used MAIN_page and dropped sizeof(MAIN_page). I think this is what you suggested. Also chared back to const char from uint8_t. Compiles; however no web page. Just says loading...
I will go back and read the documentation, again later today.
Thanks for your help.
William