Comments on: ESP32 Relay Module – Control AC Appliances (Web Server) https://randomnerdtutorials.com/esp32-relay-module-ac-web-server/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Fri, 03 Apr 2026 13:37:58 +0000 hourly 1 https://wordpress.org/?v=6.8.5 By: Sara Santos https://randomnerdtutorials.com/esp32-relay-module-ac-web-server/#comment-1175310 Fri, 03 Apr 2026 13:37:58 +0000 https://randomnerdtutorials.com/?p=91127#comment-1175310 In reply to Tito.

Great!

]]>
By: Tito https://randomnerdtutorials.com/esp32-relay-module-ac-web-server/#comment-1174280 Mon, 30 Mar 2026 18:25:13 +0000 https://randomnerdtutorials.com/?p=91127#comment-1174280 In reply to Sara Santos.

Hi Sara:
Please discard my request for help with websocket version of the project. I have managed to convert webserver version to webscoket. Thank you again for your help and support, Regards, Tito

]]>
By: Tito https://randomnerdtutorials.com/esp32-relay-module-ac-web-server/#comment-1172959 Thu, 26 Mar 2026 12:59:31 +0000 https://randomnerdtutorials.com/?p=91127#comment-1172959 In reply to Sara Santos.

Thanks Sara for your prompt attention to my request.

I am trying to use WebSocket in the project “ESP32/ESP8266 Relay Module Web Server using Arduino IDE (1, 2, 4, 8, 16 Channels)” from https://randomnerdtutorials.com/esp32-esp8266-relay-web-server/ which is WebServer based. When clicking any button in WebSocket version, button is changing in the webpage but noting changing in relays. I think I need to add function in the java script to handle the button change.

Refer to the line in webServer sketch,
buttons+= ”

Relay #” + String(i) + ” – GPIO ” + relayGPIOs[i-1] + ”

“;

But I need to add similar function in Java Script to track onchange of the button and send message through WebSocket.

Can I send you the sketch through email in a zip file?

Thank you again

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-relay-module-ac-web-server/#comment-1172954 Thu, 26 Mar 2026 12:39:42 +0000 https://randomnerdtutorials.com/?p=91127#comment-1172954 In reply to Tito.

Hi.
Can you be more specific?
What is exactly the issue?
Regards,
Sara

]]>
By: Tito https://randomnerdtutorials.com/esp32-relay-module-ac-web-server/#comment-1172784 Wed, 25 Mar 2026 22:25:47 +0000 https://randomnerdtutorials.com/?p=91127#comment-1172784 In reply to Sara Santos.

Hi Sara:
I have been trying to use WebSocket for this multiple relays project without success. I am not very familiar with WebSocket but I think there is issue with event -onchange=\”toggleCheckbox(this). Could you please give me some idea where the function toggleCheckbox is to be in placed? In sketch or in script? Any help will be appreciated. Basically I am struggling with WebServer and WebSocket

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-relay-module-ac-web-server/#comment-1171720 Mon, 23 Mar 2026 16:23:04 +0000 https://randomnerdtutorials.com/?p=91127#comment-1171720 In reply to fred.

Hi.
You need to use the libraries by ESP32Async.
And you need to delete/unninstall different libraries with the same name.
Regards,
Sara

]]>
By: fred https://randomnerdtutorials.com/esp32-relay-module-ac-web-server/#comment-1171507 Sun, 22 Mar 2026 15:20:14 +0000 https://randomnerdtutorials.com/?p=91127#comment-1171507 In reply to Sara Santos.

Hello, and thank you for your support of this code. I am getting the same error as Robert Warren, the fix was following the lib links and getting the correct lib’s. the IDE had lib with the same names but didn’t work.

]]>
By: Trevor Smith https://randomnerdtutorials.com/esp32-relay-module-ac-web-server/#comment-1092003 Tue, 02 Sep 2025 01:52:34 +0000 https://randomnerdtutorials.com/?p=91127#comment-1092003 Hi Sara,
Brilliant tutorial, but how to reverse the GPIO pins ?
When I run this code, the outputs are HIGH on reset.
The buttons on the webpage are OFF.
Thank you

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-relay-module-ac-web-server/#comment-1030440 Thu, 24 Apr 2025 17:34:05 +0000 https://randomnerdtutorials.com/?p=91127#comment-1030440 In reply to Robert Warren.

Hi.
Did you install the required libraries? Did you install the correct versions?

Which versions do you have installed?

Regards,
Sara

]]>
By: Robert Warren https://randomnerdtutorials.com/esp32-relay-module-ac-web-server/#comment-1030403 Thu, 24 Apr 2025 14:58:46 +0000 https://randomnerdtutorials.com/?p=91127#comment-1030403 I get this error when verifying sketch
C:\Users\Administrator\AppData\Local\Temp.arduinoIDE-unsaved2025324-11608-tqtnhf.mwki\sketch_apr24a\sketch_apr24a.ino:121:18: error: no matching function for call to ‘AsyncWebServerRequest::send(int, const char [10], const char [1276], String (&)(const String&))’
121 | request->send(200, “text/html”, index_html, processor);

]]>