Page_Root.h 682 B

123456789101112131415161718192021222324252627282930313233
  1. const char PAGE_Root[] PROGMEM = R"=====(
  2. <!doctype html>
  3. <meta name="viewport" content="width=device-width, initial-scale=1" />
  4. <script src="microajax.js"></script>
  5. <html>
  6. <head>
  7. <title></title>
  8. <meta charset="utf-8" />
  9. </head>
  10. <body>
  11. <link rel="stylesheet" href="style.css" type="text/css" />
  12. It work's!
  13. </body>
  14. </html>
  15. )=====";
  16. void sendRootPage()
  17. {
  18. digitalWrite(Blue_Led, LOW);
  19. if (server.args() > 0 ) // Are there any POST/GET Fields ?
  20. {
  21. for ( uint8_t i = 0; i < server.args(); i++ ) { // Iterate through the fields
  22. }
  23. }
  24. server.send ( 200, "text/html", PAGE_Root );
  25. digitalWrite(Blue_Led, HIGH);
  26. }