https://github.com/iglo17/esp8266.git
I want to remove the part of the code where there is login to enter the web server. I copied the program and I’m a beginner I don’t know which part to remove. thanks
I’m sorry.
Can you reformulate your question?
Please use Github or pastebin to share code.
Regards,
Sara
Hi.
where did you copy this program from?
From which project is this program?
Are you referring to the SSID and password?
Regards,
Sara
I found this program on this site, but I have connection problems: the web server is very slow to load.
I wanted to try removing the part of the ssid and password to see if it is faster to load the web server.
Otherwise, do you have any other solutions to recommend?
Hi.
To create the web server, the ESP is connected to your router so that you can access it online on the same network. So, you can’t remove the ssid and password. What board are you using? Is it relatively close to your router?
If you have a bad wi-fi signal, you can try to set the web server as an access point instead. It won’t require the credentials, and you’ll need to connect your computer or smartphone to the ESP32 access point directly.
I hope this helps.
Regards,
Sara
i use esp8266 and it is very close to the router but it is slow.
I don’t want to remove ssid and password to access my network, but this you see below:
this is the login after the esp8266 connects to the wifi and tells me its ip address via the serial monitor.
Start your code here // Checking if header is valid // You can use this website https://www.base64decode.org/ to generate a new username and password (select the Encode tab) // Enter with the following format: yourusername:yourpassword is encoded as eW91cnVzZXJuYW1lOnlvdXJwYXNzd29yZA== // In this case, I've used the username user and the password pass, so the encoded string is dXNlcjpwYXNz = 'user:pass' (user:pass) base64 encode
Hi.
You just need to remove that line and the corresponding closing bracket.
if (header.indexOf("dXNlcjpwYXNz") >= 0) {
You also need to remove this else statement
// If you enter wrong user or password, the http request fails...
else {
client.println("HTTP/1.1 401 Unauthorized");
client.println("WWW-Authenticate: Basic realm=\"Secure\"");
client.println("Content-Type: text/html");
client.println();
client.println("<html>Authentication failed</html>");
}
Regards,
Sara