Comments on: ESP8266 NodeMCU WebSerial: Web-based Remote Serial Monitor https://randomnerdtutorials.com/esp8266-nodemcu-webserial-library/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Sun, 29 Sep 2024 01:50:58 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: David Scoggins https://randomnerdtutorials.com/esp8266-nodemcu-webserial-library/#comment-962585 Sun, 29 Sep 2024 01:50:58 +0000 https://randomnerdtutorials.com/?p=105311#comment-962585 In reply to Leonardo.

I have figured it out. Use webseriallite library. Also the msgCallback() function has been replaced with onMessage(). Just swap the words. Webseriallite still uses regular webserial commands. After the change I have had no issues.

]]>
By: Leonardo https://randomnerdtutorials.com/esp8266-nodemcu-webserial-library/#comment-961038 Tue, 24 Sep 2024 09:09:08 +0000 https://randomnerdtutorials.com/?p=105311#comment-961038 Hello
As I can see you should use version 1.x of WebSerial.. me too I was having the same issue and at the moment I don’t have time to investigate and fix it with new functions.

]]>
By: David Scoggins https://randomnerdtutorials.com/esp8266-nodemcu-webserial-library/#comment-959740 Fri, 20 Sep 2024 10:40:33 +0000 https://randomnerdtutorials.com/?p=105311#comment-959740 I am having issues getting your example to compile. I have installed all of the libraries. I am getting:
Compilation error: ‘class WebSerialClass’ has no member named ‘msgCallback’.
I am running versions:
ESPAsyncTCP 1.2.4
ESPAsyncWebServer 3.1.0
WebSerial 2.0.7
I searched the src files for WebSerial using the find command. msgCallback was not in the file.
Could the library have updated and left this out?

]]>
By: David Scoggins https://randomnerdtutorials.com/esp8266-nodemcu-webserial-library/#comment-958478 Tue, 17 Sep 2024 11:44:52 +0000 https://randomnerdtutorials.com/?p=105311#comment-958478 I have ran this code fine in the past fine, but now I get an error when compiling the code.

C:\Users\bigda\AppData\Local\Temp.arduinoIDE-unsaved2024817-19916-1su3lgj.39p5\sketch_sep17a\sketch_sep17a.ino: In function ‘void setup()’:
C:\Users\bigda\AppData\Local\Temp.arduinoIDE-unsaved2024817-19916-1su3lgj.39p5\sketch_sep17a\sketch_sep17a.ino:51:13: error: ‘class WebSerialClass’ has no member named ‘msgCallback’
51 | WebSerial.msgCallback(recvMsg);
| ^~~~~~~~~~~
Multiple libraries were found for “ESPAsyncTCP.h”
Used: C:\Users\bigda\OneDrive\Documents\Arduino\libraries\ESPAsyncTCP
Not used: C:\Users\bigda\OneDrive\Documents\Arduino\libraries\ESPAsyncTCP-master
Multiple libraries were found for “ESPAsyncWebServer.h”
Used: C:\Users\bigda\OneDrive\Documents\Arduino\libraries\ESPAsyncWebServer-master
Not used: C:\Users\bigda\OneDrive\Documents\Arduino\libraries\ESP_Async_WebServer
exit status 1

Compilation error: ‘class WebSerialClass’ has no member named ‘msgCallback’

I am using the 2.0.7 version of webserial.
I have another sketch that used to work fine but now gives me the same error.
Is it possible when the library updated that something has changed?

]]>
By: Cool Javelin https://randomnerdtutorials.com/esp8266-nodemcu-webserial-library/#comment-816670 Thu, 09 Feb 2023 03:52:55 +0000 https://randomnerdtutorials.com/?p=105311#comment-816670 I am more interested to know if there is a color implementation for this. Particularly using the standard ANSI color codes.

]]>
By: Cool Javelin https://randomnerdtutorials.com/esp8266-nodemcu-webserial-library/#comment-816667 Thu, 09 Feb 2023 03:49:34 +0000 https://randomnerdtutorials.com/?p=105311#comment-816667 In reply to Jonas Jovial.

I was able to change the port on which either the server you want, or webserial, when instantiating the server. Of course, you will have to change the name of the server from the examples, and any references to them in your code.

Example:
AsyncWebServer serial_server(80);
AsyncWebServer ota_server(81);

I have webserial running on port 80, and then I start the OTA server on port 81. I can assume any number of servers running all on different ports.

]]>
By: bhautik https://randomnerdtutorials.com/esp8266-nodemcu-webserial-library/#comment-736029 Tue, 05 Apr 2022 07:21:45 +0000 https://randomnerdtutorials.com/?p=105311#comment-736029 can i change the web page layout???

]]>
By: Jonas Jovial https://randomnerdtutorials.com/esp8266-nodemcu-webserial-library/#comment-728022 Mon, 21 Feb 2022 21:35:15 +0000 https://randomnerdtutorials.com/?p=105311#comment-728022 This is nice, but what I have already a web server running using the ESP8266WebServer library?

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-webserial-library/#comment-671052 Sun, 19 Sep 2021 16:27:30 +0000 https://randomnerdtutorials.com/?p=105311#comment-671052 In reply to Paul.

Hi.
Save the result of the currentTime – previousTime in a variable and convert it to a string before printing it using webserial.
Regards,
Sara

]]>
By: Paul https://randomnerdtutorials.com/esp8266-nodemcu-webserial-library/#comment-671048 Sun, 19 Sep 2021 16:00:24 +0000 https://randomnerdtutorials.com/?p=105311#comment-671048 In reply to Paul.

Hi Sara – I noticed that when I changed back WebSerial on one line to Serial.Print, the code compiled fine. The previousTime became unrecognised when I used WebSerial.Print….

Here is the error message:-src\main.cpp: In function ‘void loop()’:
src\main.cpp:180:50: error: call of overloaded ‘println(long unsigned int)’ is ambiguous
WebSerial.println (currentTime – previousTime);
^
And here is the block of code, which now compiles when I change one specific reference from WebSerial to Serial.

Any ideas what is happening here?

if (systemState != priorSystemState)
{
WebSerial.print (F(“States – FROM:- “));
WebSerial.print (messages[priorSystemState]);
WebSerial.print (F(” TO -> “));
WebSerial.println (messages[systemState]);
WebSerial.print (F(“doorSensorStatus:- “));
WebSerial.println (doorSensorStatus);
WebSerial.print (F(“masterSwitchStatus:- “));
WebSerial.println (masterSwitchStatus);
WebSerial.print (F(“Current Time:- “));
WebSerial.print (currentHour);
WebSerial.print (F(“H:”));
WebSerial.print (currentMin);
WebSerial.print (F(“m:”));
WebSerial.print (currentSecs);
WebSerial.println (F(“s:”));
WebSerial.print (F(“PriorPIR / CurrentPIR – INSIDE “));
WebSerial.print (priorpIRiNStatus);
WebSerial.print (F(” / “));
WebSerial.println (pIRiNStatus);
WebSerial.print (F(“PriorPIR / CurrentPIR – OUTSIDE “));
WebSerial.print (priorpIRoUTStatus);
WebSerial.print (F(” / “));
WebSerial.println (pIRoUTStatus);
WebSerial.print (F(“HBridge 1 / HBridge 2:- “));
WebSerial.print (digitalRead(HBridge1));
WebSerial.print (F(” / “));
WebSerial.println (digitalRead(HBridge2));
WebSerial.print (F(“Flap Elapsed Time: “));
Serial.println (currentTime – previousTime);
WebSerial.print(F(“motorEnable Pin: “));
WebSerial.println(digitalRead(motorEnable));
WebSerial.println (F(“***********************”));

]]>