Web interface from NodeMCU – Part 1, Basic interface

WiFiNewLibrary.h

#ifndef WiFiNewLibrary_h #define WiFiNewLibrary_h #include <ESP8266WiFi.h#include <ESP8266WebServer.h#include <memoryextern "C" { #include "user_interface.h" } const char HTTP_HEADER[] PROGMEM = "<!DOCTYPE html<html lang=\"en\"<head<meta charset=\"UTF-8\"<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=no\"/<title{v}</title"; const char HTTP_STYLE[] PROGMEM = "<style.c{text-align: center;} div,input{padding:5px;font-size:1em;} input{width:95%;} body{text-align: center;font-family:verdana;} button{border:0;background-color: #58d68d;color:#fff;line-height:2.4rem;font-size:1.2rem;width:100%;} .q{float: right;width: 64px;text-align: right;} </style"; const char HTTP_HEADER_END[] PROGMEM = "</head<body<div style='text-align:left;display:inline-block;min-width:260px;'"; const char HTTP_PORTAL_OPTIONS[] PROGMEM = "<form action=\"/wifi\" method=\"get\"<buttonConfigure WiFi</button</form<br/<form action=\"/i\" method=\"get\"<buttonESP8266 Info</button</form<br/<form action=\"/r\" method=\"post\"<buttonReset ESP8266</button</form";
Read More
X