здесь есть ошибки, можете ли вы проверить и исправить код

#include <WiFi.h>
#include <WebServer.h>

/* Установите здесь свои SSID и пароль /
const char ssid = “ipSwitch”;
const char* password = “26000000”;

/* Задайте здесь ваши логин и пароль /
const char loginUser = “admin”;
const char* loginPassword = “admin”;

/* Настройки IP адреса */
IPAddress local_ip(192,168,2,1);
IPAddress gateway(192,168,2,1);
IPAddress subnet(255,255,255,0);

WebServer server(80);
uint8_t LED1pin = 15;
bool LED1status = LOW;
uint8_t LED2pin = 5;
bool LED2status = LOW;
unsigned long led1OnTime = 0;
unsigned long led1Duration = 1000; // Duration LED1 is on (1 second)
bool isAuth = false; // для управления состоянием входа

void setup() {
Serial.begin(115200);
pinMode(LED1pin, OUTPUT);
pinMode(LED2pin, OUTPUT);
WiFi.softAP(ssid, password);
WiFi.softAPConfig(local_ip, gateway, subnet);
delay(100);
server.on(“/”, handle_Root);
server.on(“/login”, handle_Login);
server.on(“/led1on”, handle_led1on);
server.on(“/led1off”, handle_led1off);
server.on(“/led2on”, handle_led2on);
server.on(“/led2off”, handle_led2off);
server.onNotFound(handle_NotFound);
server.begin();
Serial.println(“HTTP server started”);
}

void loop() {
server.handleClient();

if (millis() - led1OnTime >= led1Duration && LED1status) {
LED1status = LOW;
}

digitalWrite(LED1pin, LED1status ? HIGH : LOW);
digitalWrite(LED2pin, LED2status ? HIGH : LOW);
}

void handle_Root() {
if (isAuth) {
handle_OnConnect();
} else {
server.send(200, “text/html”, loginIndex);
}
}

void handle_Login() {
if (server.hasArg(“plain”)== false){ //Check if body received
server.send(400, “text/plain”, “Body not received”);
return;
}
String incomingString = server.arg(“plain”);
if (incomingString.indexOf(“username=” + String(loginUser)) >= 0 && incomingString.indexOf(“password=” + String(loginPassword)) >= 0 ) {
isAuth = true;
server.send(200, “text/plain”, “Login successful, click <a href=‘/’>here</a> to proceed.”);
} else {
isAuth = false;
server.send(401, “text/plain”, “Login Failed. Please try again.”);
}
}

void handle_OnConnect() {
if (!isAuth) {
server.send(401, “text/html”, loginIndex);
return;
}
LED1status = LOW;
LED2status = LOW;
Serial.println(“GPIO15 Status: OFF | GPIO5 Status: OFF”);
server.send(200, “text/html”, SendHTML(LED1status,LED2status));
}

void handle_led1on() {
if (!isAuth) {
server.send(401, “text/html”, loginIndex);
return;
}
LED1status = HIGH;
led1OnTime = millis(); // Record the time when LED1 was turned on
Serial.println(“GPIO15 Status: ON”);
server.send(200, “text/html”, SendHTML(true, LED2status));
}

void handle_led1off() {
if (!isAuth) {
server.send(401, “text/html”, loginIndex);
return;
}
LED1status = LOW;
Serial.println(“GPIO15 Status: OFF”);
server.send(200, “text/html”, SendHTML(false, LED2status));
}

void handle_led2on() {
if (!isAuth) {
server.send(401, “text/html”, loginIndex);
return;
}
LED2status = HIGH;
Serial.println(“GPIO5 Status: ON”);
server.send(200, “text/html”, SendHTML(LED1status,true));
}

void handle_led2off() {
if (!isAuth) {
server.send(401, “text/html”, loginIndex);
return;
}
LED2status = LOW;
Serial.println(“GPIO5 Status: OFF”);
server.send(200, “text/html”, SendHTML(LED1status,false));
}

void handle_NotFound(){
server.send(404, “text/plain”, “Not found”);
}

String SendHTML(uint8_t led1stat,uint8_t led2stat){
String ptr = “<!DOCTYPE html> <html>\n”;
ptr +=“<meta http-equiv=“Content-type” content=“text/html; charset=utf-8”><head><meta name=“viewport” content=“width=device-width, initial-scale=1.0, user-scalable=no”>\n”;
ptr +=“<title>Управление светодиодом</title>\n”;
ptr +=“<style>html { font-family: Helvetica; display: inline-block; margin: 0px auto; text-align: center;}\n”;
ptr +=“body{margin-top: 50px;} h1 {color: #444444;margin: 50px auto 30px;} h3 {color: #444444;margin-bottom: 50px;}\n”;
ptr +=“.button {display: block;width: 80px;background-color: #3498db;border: none;color: white;padding: 13px 30px;text-decoration: none;font-size: 25px;margin: 0px auto 35px;cursor: pointer;border-radius: 4px;}\n”;
ptr +=“.button-on {background-color: #3498db;}\n”;
ptr +=“.button-on:active {background-color: #2980b9;}\n”;
ptr +=“.button-off {background-color: #34495e;}\n”;
ptr +=“.button-off:active {background-color: #2c3e50;}\n”;
ptr +=“p {font-size: 14px;color: #888;margin-bottom: 10px;}\n”;
ptr +=“</style>\n”;
ptr +=“</head>\n”;
ptr +=“<body>\n”;
ptr +=“<h1>ESP32 Веб сервер</h1>\n”;
ptr +=“<h3>Режим точка доступа WiFi (AP)</h3>\n”;
if(led1stat)
{ptr +=“<p>Состояние LED1: ВКЛ.</p><a class=“button button-off” href=”/led1off">ВЫКЛ.</a>\n";}
else
{ptr +=“<p>Состояние LED1: ВЫКЛ.</p><a class=“button button-on” href=”/led1on">ВКЛ.</a>\n";}
if(led2stat)
{ptr +=“<p>Состояние LED2: ВКЛ.</p><a class=“button button-off” href=”/led2off">ВЫКЛ.</a>\n";}
else
{ptr +=“<p>Состояние LED2: ВЫКЛ.</p><a class=“button button-on” href=”/led2on">ВКЛ.</a>\n";}
ptr +=“</body>\n”;
ptr +=“</html>\n”;
return ptr;
}

const char loginIndex =
“<!DOCTYPE html>”
“<html>”
“<head>”
“<meta name=‘viewport’ content=‘width=device-width, initial-scale=1’/>”
“<title>ESP32 Login</title>”
“<style>body { margin-top: 30px; font-family: Arial, Helvetica, sans-serif; display: flex; flex-direction: column; justify-content: center; align-items: center; }”
“form { display: flex; flex-direction: column; align-items: center; }”
“input { height: 40px; font-size: 20px; margin: 10px; }”
“button { height: 40px; font-size: 20px; color: white; background-color: #3498db; border: none; padding: 10px; cursor: pointer; }”
“</style>”
“</head>”
“<body>”
“<h2>ESP32 Login</h2>”
“<form action=‘/login’ method=‘POST’>”
“<input type=‘text’ name=‘username’ placeholder=‘Username’ required>”
“<input type=‘password’ name=‘password’ placeholder=‘Password’ required>”
“<button type=‘submit’>Login</button>”
“</form>”
“</body>”
“</html>”;