void info_html_generator (const char* url, const char* query, httppage_request_t* http_request); void file_not_found_generator (const char* url, const char* query, httppage_request_t* http_request); const char hello_html[] = "

Hello World!

"; HTTPPage pages[] = { HTTPPageRedirect("/", "/hello.html"), // redirect root to hello page HTTPPage("/hello.html", HTTP_MIME_TEXT_HTML, hello_html), HTTPPage("/info.html" , HTTP_MIME_TEXT_HTML, info_html_generator), HTTPPage("/404.html" , HTTP_MIME_TEXT_HTML, file_not_found_generator), }; # Note that we need to indicate the page count in the constructor! // Declare HTTPServer with max number of pages uint8_t pagecount = sizeof(pages)/sizeof(HTTPPage); AdafruitHTTPServer httpserver(pagecount);