Comments on: ESP32 Web Server – Arduino IDE https://randomnerdtutorials.com/esp32-web-server-arduino-ide/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Thu, 19 Mar 2026 13:17:23 +0000 hourly 1 https://wordpress.org/?v=6.8.5 By: Sara Santos https://randomnerdtutorials.com/esp32-web-server-arduino-ide/#comment-1170240 Thu, 19 Mar 2026 13:17:23 +0000 http://randomnerdtutorials.com/?p=36542#comment-1170240 In reply to Jim.

Hi.
It depends on the board.
In our case, that pin is not used by PSRAM, so we can use it as an output.
In other boards, it might be different, and you might need to select a different pin.

Regards,
Sara

]]>
By: Jim https://randomnerdtutorials.com/esp32-web-server-arduino-ide/#comment-1169955 Wed, 18 Mar 2026 17:10:58 +0000 http://randomnerdtutorials.com/?p=36542#comment-1169955 In reply to Edwin Espin.

This is on a EPS32-C5 dev board.

]]>
By: Jim https://randomnerdtutorials.com/esp32-web-server-arduino-ide/#comment-1169953 Wed, 18 Mar 2026 17:09:45 +0000 http://randomnerdtutorials.com/?p=36542#comment-1169953 In reply to Edwin Espin.

I have similar issue. GPIO27 is used for PSRAM. I’m going to try to use another pin.

]]>
By: saad-abdo https://randomnerdtutorials.com/esp32-web-server-arduino-ide/#comment-1145712 Sat, 03 Jan 2026 16:54:20 +0000 http://randomnerdtutorials.com/?p=36542#comment-1145712 thanks for your time

]]>
By: galina https://randomnerdtutorials.com/esp32-web-server-arduino-ide/#comment-1077650 Sun, 03 Aug 2025 01:10:05 +0000 http://randomnerdtutorials.com/?p=36542#comment-1077650 Hi Sara
It is possible to add this code – 1khz generator, and send this signal to iPhone speaker when LED is on ?
#include <Arduino.h>
void setup() {
// No setup needed for tone() function itself
}

void loop() {

tone(26, 1000); // tone on pin 26
delay(5); // Delay to hear the tone

}

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-web-server-arduino-ide/#comment-1065857 Mon, 07 Jul 2025 09:20:02 +0000 http://randomnerdtutorials.com/?p=36542#comment-1065857 In reply to John Page.

Hi.
I recommend following this tutorial now instead: https://randomnerdtutorials.com/esp32-web-server-beginners-guide/
The code is better optimized.

Regards,
Sara

]]>
By: John Page https://randomnerdtutorials.com/esp32-web-server-arduino-ide/#comment-1065279 Sat, 05 Jul 2025 22:11:22 +0000 http://randomnerdtutorials.com/?p=36542#comment-1065279 Thank you! Very useful. I notice from the Serial port log that when a request is processed there is a slight delay, then it seems to get a new client again and then disconnect it. Why does that happen? I only click the button once.

]]>
By: Michael https://randomnerdtutorials.com/esp32-web-server-arduino-ide/#comment-1046674 Thu, 22 May 2025 20:53:02 +0000 http://randomnerdtutorials.com/?p=36542#comment-1046674 hi Sara, I have question about the two button example. I created 10 buttons and when I click on the lowest one, I want that the next page goes down to last button I had clicked on, via html anchor or something. The problem with anchors is that they are not visible in the header via GET like below and so IndexOf can’t find #test1 . Do you have an idea how to fix this? Thanks in advance.

test1

New Client.
GET / HTTP/1.1

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-web-server-arduino-ide/#comment-1046434 Thu, 22 May 2025 08:39:39 +0000 http://randomnerdtutorials.com/?p=36542#comment-1046434 In reply to Chuck.

Hi.
Thanks for your feedback.
Currently, I recommend following this updated version of the tutorial instead: https://randomnerdtutorials.com/esp32-web-server-beginners-guide/

Regards,
Sara

]]>
By: Chuck https://randomnerdtutorials.com/esp32-web-server-arduino-ide/#comment-1046259 Wed, 21 May 2025 16:01:51 +0000 http://randomnerdtutorials.com/?p=36542#comment-1046259 Hello, this tutorial did not work for me out of the box. It would just say “connecting to (SSID)……..” forever. I found in another of your tutorials (https://randomnerdtutorials.com/esp32-useful-wi-fi-functions-arduino/):

“If the ESP32 will connected to another network (access point/hotspot) it must be in station mode.

WiFi.mode(WIFI_STA);”

I added this on line 46 and now it works.

Old:
Serial.print(“Connecting to “);
Serial.println(ssid);
WiFi.begin(ssid, password);

New:
Serial.print(“Connecting to “);
Serial.println(ssid);
WiFi.mode(WIFI_STA); //This was not in the tutorial but is necessary for the ESP32 to connect.
WiFi.begin(ssid, password);

Maybe because I am using ESP32-WROOM-32 and this is for an older or different module? I’m not sure.

Anyway, thank you so much for providing this example, and for your other tutorials! Your work has made my work so much easier!

]]>