Comments on: ESP8266 NodeMCU WebSocket Server: Control Outputs (Arduino IDE) https://randomnerdtutorials.com/esp8266-nodemcu-websocket-server-arduino/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Thu, 29 Jan 2026 13:18:40 +0000 hourly 1 https://wordpress.org/?v=6.8.5 By: Lutz https://randomnerdtutorials.com/esp8266-nodemcu-websocket-server-arduino/#comment-1156847 Thu, 29 Jan 2026 13:18:40 +0000 https://randomnerdtutorials.com/?p=99546#comment-1156847 Hello,
thanks for your good work. But, why “JavaScript” ?
Is it possible to write a C++-Code instead Java ?

sincerely, Lutz

]]>
By: Bob https://randomnerdtutorials.com/esp8266-nodemcu-websocket-server-arduino/#comment-1115888 Tue, 28 Oct 2025 15:15:39 +0000 https://randomnerdtutorials.com/?p=99546#comment-1115888 In reply to Bruno.

Thanks for the info.
I had previously tied going to an earlier version but did not go back that far.

]]>
By: Bruno https://randomnerdtutorials.com/esp8266-nodemcu-websocket-server-arduino/#comment-1114474 Sat, 25 Oct 2025 02:44:29 +0000 https://randomnerdtutorials.com/?p=99546#comment-1114474 In reply to Bob.

Downgrade ESPAsyncWebServer to version 3.0.6 and will work.

]]>
By: Bob https://randomnerdtutorials.com/esp8266-nodemcu-websocket-server-arduino/#comment-1081496 Wed, 13 Aug 2025 15:48:33 +0000 https://randomnerdtutorials.com/?p=99546#comment-1081496 Greetings:
I haven’t been able to get this program to run.
Everything is OK until I enter the address in my browser then it
errors with this error:
————— 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
v0004d170
~ld

Connecting to WiFi..
192.168.1.16

I tried with windows 11 IDE2.3.6 and windows 10 IDE1.8.19 all
with the same results.
I ran the ESP32 version and it works OK.
The two programs are the same except for the libraries.
I am using the Libraries recommended.
ESP AsyncTCP by ESP32Async version 2.0.0
ESP Async WebServer by ESP32Async version 3.8.0
Both say they are for ESP8266 and ESP32
Any help is appreciated.
Bob

]]>
By: kc tam https://randomnerdtutorials.com/esp8266-nodemcu-websocket-server-arduino/#comment-1059634 Sat, 21 Jun 2025 12:08:33 +0000 https://randomnerdtutorials.com/?p=99546#comment-1059634 initWebSocket();
// Route for root / web page
server.on(“/”, HTTP_GET, [](AsyncWebServerRequest *request){
request->send(200, “text/html”, index_html, processor);

above fct may typo error —-> i.e. missing _P
request->send_P(200, “text/html”, index_html, processor);

]]>
By: Ashutosh Yeole https://randomnerdtutorials.com/esp8266-nodemcu-websocket-server-arduino/#comment-915553 Wed, 15 May 2024 14:29:25 +0000 https://randomnerdtutorials.com/?p=99546#comment-915553 I am trying to use AutoconnectAP with this code but there are conflicts in these two libraries. Is there any example where this two libraries are used together?

]]>
By: Ambrosius https://randomnerdtutorials.com/esp8266-nodemcu-websocket-server-arduino/#comment-842406 Fri, 23 Jun 2023 09:25:46 +0000 https://randomnerdtutorials.com/?p=99546#comment-842406 hello…thank you very much for the tutorial that I really need. can you help how to change the toggle button to a temporary button (the button is active as long as I press the mouse) thanks for the help

]]>
By: Ghost Shadow https://randomnerdtutorials.com/esp8266-nodemcu-websocket-server-arduino/#comment-838468 Fri, 02 Jun 2023 15:10:34 +0000 https://randomnerdtutorials.com/?p=99546#comment-838468 In reply to Sara Santos.

Sorry if I insist, have you had the opportunity to verify the behavior of the page? Last thing, would you help me with a change, I should add another button, but I have to make sure that only one button at a time is ON, example: the first is on, the second is off, if the second is on the first goes off. I hope I have been able to explain what I should do and receive a kind answer to my problems. Thank you in advance.

]]>
By: Ghost Shadow https://randomnerdtutorials.com/esp8266-nodemcu-websocket-server-arduino/#comment-837173 Wed, 24 May 2023 15:19:14 +0000 https://randomnerdtutorials.com/?p=99546#comment-837173 In reply to Sara Santos.

Thanks for the reply, opening the console I do not receive any message outside of connection attempt and open connection. In the IDE console I only get connected by ID and IP when I log in from outside, while locally I also get the STATE. I insert the link of the remote server where the index page is running in case it can be useful. Thank you. http://185.182.186.170/arduino/

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-websocket-server-arduino/#comment-836906 Mon, 22 May 2023 20:40:54 +0000 https://randomnerdtutorials.com/?p=99546#comment-836906 In reply to Ghost Shadow.

Hi.
Can you open the javascript console on your web browser, refresh the web page and check which messages do you get?
Regards,
Sara

]]>