Comments on: ESP8266 NodeMCU Relay Module – Control AC Appliances (Web Server) https://randomnerdtutorials.com/esp8266-relay-module-ac-web-server/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Tue, 29 Apr 2025 15:23:28 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Sara Santos https://randomnerdtutorials.com/esp8266-relay-module-ac-web-server/#comment-1032205 Tue, 29 Apr 2025 15:23:28 +0000 https://randomnerdtutorials.com/?p=91808#comment-1032205 In reply to Jose Hodak.

Hi.
Unfortunately, no.
I haven no idea what might be causing the issue.
Do you have any antivirus or other extensions on the browser?
What ESP8266 board model are you using?
Regards,

Sara

]]>
By: Jose Hodak https://randomnerdtutorials.com/esp8266-relay-module-ac-web-server/#comment-1032056 Tue, 29 Apr 2025 03:55:05 +0000 https://randomnerdtutorials.com/?p=91808#comment-1032056 Hello, Sara
Unfortunately, I do not know much about the Java debugging console. I have tried what you suggested the best way I could:
1-compile and flush the cude into the nodemcu and use the serial monitor to see the connection status and IP adress. This gave me 192.168.0.14.
2-After pasting the ip address of the nodemcu esp8266 on google chrome on my laptop I do not see the webpage, and an error:
This site can’t be reached
The connection was reset.
Try:

Checking the connection
Checking the proxy and the firewall
Running Windows Network Diagnostics
ERR_CONNECTION_RESET
Is shown.

At this stage the serial monitor shows text as i described two posts ago.

3-On google chrome i press Ctrl+Shift+J to open the java console
Under the “Network” tab i see the following:

192.168.0.14 (failed)net::ERR_CONNECTION_RESET document 0.0 kB 9.61 s
192.168.0.14 (canceled) document Other 0.0 kB 9.66 s
192.168.0.14 (canceled) document Other 0.0 kB 9.59 s
192.168.0.14 (failed)net::ERR_CONNECTION_RESET document 0.0 kB 11.74 s
Imagedata:image/png;base… 200 png chrome-error://chromewebdata/:1505 (memory cache) 0 ms
Imagedata:image/png;base… 200 png chrome-error://chromewebdata/:1505 (memory cache) 0 ms
Imagedata:image/png;base… 200 png chrome-error://chromewebdata/:1505 (memory cache) 0 ms
Imagedata:image/png;base… 200 png chrome-error://chromewebdata/:1505 (memory cache) 0 ms
Imagedata:image/png;base… 200 png chrome-error://chromewebdata/:1505 (memory cache) 0 ms
Imagedata:image/png;base… 200 png chrome-error://chromewebdata/:1505 (memory cache) 0 ms
If I reload the page (192.168.0.14) I get additional lines on this table under “network”, that look like the last ones pasted here.
Is this information helpful to figure out what is happening?

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-relay-module-ac-web-server/#comment-1031769 Mon, 28 Apr 2025 09:57:43 +0000 https://randomnerdtutorials.com/?p=91808#comment-1031769 In reply to Jose Hodak.

Hi.
Is your computer on the same network of the ESP8266?
Can you open the web browser javascript console when you try to access the web page and see which error you get.
Regards
Sara

]]>
By: Jose Hodak https://randomnerdtutorials.com/esp8266-relay-module-ac-web-server/#comment-1031585 Sun, 27 Apr 2025 23:31:23 +0000 https://randomnerdtutorials.com/?p=91808#comment-1031585 Hello Sara,
I tried 3 different boards. Two of them were the NOD-MCU ESP8266, but they are sligthly different judging by the laser marking on the metal shielding. Then I went on and tried an ESP-07 board. In all 3 cases the results are exactly the same. The connection to the WIFI router is succesful, I get the IP address from the serial monitor and paste it on the web browser (Chrome and Edge do the same). Thn tere is text being posted in the serial monitor but the browser says that the page can not be reached. I do not get to see the webpage with the buttons as you show. It seems unrelated to the boards, and to the browser. But what could it be?
Thanks again for looking into this issue.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-relay-module-ac-web-server/#comment-1031421 Sun, 27 Apr 2025 09:47:09 +0000 https://randomnerdtutorials.com/?p=91808#comment-1031421 In reply to Jose Hodak.

Yes.
those are the files.
What about the ESP8266 board?
Which model are you using?
Regards,
Sara

]]>
By: Jose Hodak https://randomnerdtutorials.com/esp8266-relay-module-ac-web-server/#comment-1031245 Sun, 27 Apr 2025 00:26:37 +0000 https://randomnerdtutorials.com/?p=91808#comment-1031245 In reply to Jose Hodak.

continuation of my previous post:
When I updated to version 3.7.7 ESP Async WebServer version 3.7.6 by ESP32Async i get the same results.
Did I use the correct libraries?.

]]>
By: Jose Hodak https://randomnerdtutorials.com/esp8266-relay-module-ac-web-server/#comment-1031244 Sun, 27 Apr 2025 00:24:16 +0000 https://randomnerdtutorials.com/?p=91808#comment-1031244 Hello Sara,
Thank you a million times for replying.
The serial monitor does show text upon connecting:

Connecting to WiFi..
Connected. Local address of the server is:
192.168.1.101

When i type the ipa address (192.168.1.101) in my web broser on the phone the serial monitor shows a long text like this [i omitted some lines but i will be happy to post the whole output if you need me to do so]:

————— CUT HERE FOR EXCEPTION DECODER —————

With regards to your question about what libraries I have installed, here is what I have included:

Exception (3):
epc1=0x4000bf64 epc2=0x00000000 epc3=0x00000000 excvaddr=0x4023f965 depc=0x00000000

stack>>>

ctx: sys
sp: 3fffeba0 end: 3fffffb0 offset: 0150
3fffecf0: 40201298 00000030 4020a350 4020a334
3fffed00: 0000002c 00000030 3fffedc8 3ffe8803
3fffed10: 000000c8 3fff0684 3fffed60 4020105c
3fffed20: 40201298 000002a0 4020a350 4020a334
3fffed30: 4023f965 00000001 3fffed50 40206bb5
3fffed40: 3fff06c0 3fff002c 00000000 3fff06b0
3fffed50: 00000002 3fff09f4 3fff0684 4020122f
3fffed60: 40201298 00000001 4020a350 4020a334
3fffed70: 3fff0bec 0000002c 3fff0c38 40201f95
.
[a bunch of lines like these]
.
3fffefa0: 4010000d bff00000 00049fbb 401000ab
3fffefb0: 00000000 3fffef4c 00000000 3ffffef8
3fffefc0: 3fffffd0 00000000 00000000 feefeffe
3fffefd0: feefeffe feefeffe feefeffe feefeffe
3fffefe0: feefeffe feefeffe feefeffe feefeffe
.
[about some 160 lines like these]
.
3ffffbf0: feefeffe feefeffe feefeffe feefeffe
3ffffc00: feefeffe feefeffe feefeffe feefeffe
3ffffc10: 3ffffc54 3ffffc58 3ffef158 40211cd4
3ffffc20: 4023d0fa 3ffef158 00000000 00000001
3ffffc30: 4023e3dc feefeffe feefeffe 00000000
3ffffc40: 3ffef158 00000000 3ffef158 40211dbc
3ffffc50: 00000000 00000000 00000000 feefeffe
3ffffc60: 00000000 00000000 000005dc 00000000
3ffffc70: 0000000e 00000000 00000041 3ffffd90
3ffffc80: 3ffffd98 3ffffd94 3ffef9fc 4023a0b0
.
[a bunch of lines like these]
.
3fffff90: 3fffdad0 3fff020c 3ffeec34 3ffeee38
3fffffa0: 3fffdad0 00000000 3ffeee0c 3ffeee38
<<<stack<<<

————— CUT HERE FOR EXCEPTION DECODER —————

ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 3424, room 16
tail 0
chksum 0x2e
load 0x3fff20b8, len 40, room 8
tail 0
chksum 0x2b
csum 0x2b
v00049fc0
~ld
⸮⸮⸮⸮n⸮r⸮⸮n|⸮l⸮l b⸮⸮|r⸮l⸮n⸮⸮o⸮

With regards to your question about what webserver library I have installed, here is what I have included in the code:

#include “ESPAsyncWebServer.h”
And, the libraries I have installed is the ESP Async WebServer version 3.7.6 by ESP32Async
I also updated to 3.7.7 but

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-relay-module-ac-web-server/#comment-1029365 Mon, 21 Apr 2025 09:37:31 +0000 https://randomnerdtutorials.com/?p=91808#comment-1029365 In reply to Jose Hodak.

Hi.
Your previous comment is now showing.
We need to manually approve most comments.

What do you get on the Serial Monitor?

Which libraries you have installed for the web server and which versions?
Regards,
Sara

]]>
By: Jose Hodak https://randomnerdtutorials.com/esp8266-relay-module-ac-web-server/#comment-1028964 Sun, 20 Apr 2025 00:43:06 +0000 https://randomnerdtutorials.com/?p=91808#comment-1028964 Hi, great tutirial. I posted about an error I was getting, but my post does ot show up here yet. Nevermind, I figured out that the cause was the driveone getting on the way. I managed to compile the code, upload it and the NODMCU connects, and I get the local IP, but no web page with the buttons upload. The serial monitor show activity, and text is shown on it, while it seems that the server connects and disconnect repetedly, but no web page is seen on the browser. What could be the reason?

]]>
By: Jose Hodak https://randomnerdtutorials.com/esp8266-relay-module-ac-web-server/#comment-1028950 Sat, 19 Apr 2025 23:45:46 +0000 https://randomnerdtutorials.com/?p=91808#comment-1028950 Hi,
Thank you for offering these excellent tutorials. I have been learning a lot from your site.
I am trying the relay control using the Async Server example code, using a generic NODMCU ESP8266
I am getting the error:

no matching function for call to ‘AsyncWebServerRequest::send(int, const char [10], const char [1276], String (&)(const String&))’

I tried to find information abot this error, but with my limmited understanding
of these libraries, I can’t figure out how to correct this error.

I installed the libraries as you recommend ( ESPAsyncWebServer and the SPAsyncTCP cerated by ESP32Async).

Also, upon attempting to compile the code, i read that the following lines were also output, which might be related to the error I am getting:
Multiple libraries were found for “ESPAsyncWebServer.h”
Used: C:\Users\Jose\OneDrive\Documents\Arduino\libraries\ESPAsyncWebServer-master
Not used: C:\Users\Jose\OneDrive\Documents\Arduino\libraries\ESP_Async_WebServer
Multiple libraries were found for “ESPAsyncTCP.h”
Used: C:\Users\Jose\OneDrive\Documents\Arduino\libraries\ESPAsyncTCP-master
Not used: C:\Users\Jose\OneDrive\Documents\Arduino\libraries\ESP_Async_TCP

Is it possible that this is due to an incorrect library used?.
Any help will be very much appreciated.

]]>