ESP32-ESP8266 Web Server HTTP Authentication (Username and Password Protected)
ESP32-ESP8266 Web Server HTTP Authentication (Username and Password Protected)
Rui Santos
Complete project details at https://RandomNerdTutorials.com/esp32-esp8266-web-
server-http-authentication/
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
*********/
void setup(){
// Serial port for debugging purposes
Serial.begin(115200);
pinMode(output, OUTPUT);
digitalWrite(output, LOW);
// Connect to Wi-Fi
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(1000);
Serial.println("Connecting to WiFi..");
}
// Start server
server.begin();
}
void loop() {