Comments on: ESP32 WebSerial: Web-based Remote Serial Monitor https://randomnerdtutorials.com/esp32-webserial-library/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Wed, 23 Jul 2025 16:32:47 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: ALi https://randomnerdtutorials.com/esp32-webserial-library/#comment-1073815 Wed, 23 Jul 2025 16:32:47 +0000 https://randomnerdtutorials.com/?p=105247#comment-1073815 Hi
I recieved error
C:\Users\user\AppData\Local\Temp.arduinoIDE-unsaved2025623-4928-1vakoit.5qob\sketch_jul23a\sketch_jul23a.ino: In function ‘void setup()’:
C:\Users\user\AppData\Local\Temp.arduinoIDE-unsaved2025623-4928-1vakoit.5qob\sketch_jul23a\sketch_jul23a.ino:50:13: error: ‘class WebSerialClass’ has no member named ‘msgCallback’
50 | WebSerial.msgCallback(&recvMsg);
| ^~~~~~~~~~~
exit status 1

Compilation error: ‘class WebSerialClass’ has no member named ‘msgCallback’
Please what is this error
i used arduino

]]>
By: Z80 https://randomnerdtutorials.com/esp32-webserial-library/#comment-1055823 Sun, 08 Jun 2025 13:48:46 +0000 https://randomnerdtutorials.com/?p=105247#comment-1055823 In reply to Brad Herring.

Hi Brad,
Did you figure #2 out. Ditto. Can’t seem to print in Setup(). WebSerial.println() placed after server.begin()

void setup() {
Serial.begin(115200);
pinMode(LED, OUTPUT);
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);
if (WiFi.waitForConnectResult() != WL_CONNECTED) {
Serial.printf(“WiFi Failed!\n”);
return;
}
Serial.print(“IP Address: “);
Serial.println(WiFi.localIP());
// WebSerial is accessible at “/webserial” in browser
WebSerial.begin(&server);
WebSerial.onMessage(recvMsg);
server.begin();
WebSerial.println(“End of Setup()”);
}

]]>
By: Dana Knight https://randomnerdtutorials.com/esp32-webserial-library/#comment-1012173 Sat, 01 Mar 2025 14:43:27 +0000 https://randomnerdtutorials.com/?p=105247#comment-1012173 In reply to Sara Santos.

Hi, I am trying to do a simple web serial solution, using no
JSON or Python or HTML, just C/C++ type solution, as if
I were debugging to a terminal session.

After trying a half dozen projects, wading thru all the lib
issues of each project, cryptic errors when I finally can
get a successful compile, a complete failure results in
Rosetta Stone type un translatable errors.

Do you know of or have a solution to this ? Or am I just
dreaming simple string data cannot be sent to web pages,
its all an illusion.

Regards, Dana.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-webserial-library/#comment-1010490 Mon, 24 Feb 2025 02:25:29 +0000 https://randomnerdtutorials.com/?p=105247#comment-1010490 In reply to Michael.

Hi.
You need to update to the following libraries:

https://rntlab.com/question/solvedassert-failed-tcp_alloc-idf-components-lwip-lwip-src-core-tcp-c1851-required-to-lock-tcpip-core-functionality/

I’ll update all our web server tutorials when I come back to the office.

Regards,
Sara

]]>
By: Wim Deblaere https://randomnerdtutorials.com/esp32-webserial-library/#comment-1010351 Sun, 23 Feb 2025 09:41:43 +0000 https://randomnerdtutorials.com/?p=105247#comment-1010351 After some trial-and-error, I’ve found that the combination of these specific libraries versions -partially- do the job:
mathieucarbou/AsyncTCP@^3.3.2
mathieucarbou/ESPAsyncWebServer@^3.6.0
ayushsharma82/WebSerial@^2.0.8
As long as you don’t need input from the webSerial interface…
WebSerial.msgCallback(recvMsg) isn’t supported.

]]>
By: Michael https://randomnerdtutorials.com/esp32-webserial-library/#comment-1010136 Sat, 22 Feb 2025 15:56:11 +0000 https://randomnerdtutorials.com/?p=105247#comment-1010136 Hi.
After installing your Webserial Sketch on a ESP32, the ESP32 is booting all the time:

IP Address: 192.168.0.35

assert failed: tcp_alloc /IDF/components/lwip/lwip/src/core/tcp.c:1851 (Required to lock TCPIP core functionality!)

Backtrace: 0x40082489:0x3ffb1fe0 0x4008c321:0x3ffb2000 0x400925d6:0x3ffb2020 0x400f55d3:0x3ffb2150 0x400f574d:0x3ffb2170 0x400d580c:0x3ffb2190 0x400dd2ed:0x3ffb21e0 0x400d2a9a:0x3ffb2200 0x400e13cf:0x3ffb2270 0x4008d06a:0x3ffb2290

ELF file SHA256: 81cdc6e68

Rebooting…
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:4916
load:0x40078000,len:16492
load:0x40080400,len:4
load:0x40080404,len:3524
entry 0x400805b8

What went wrong ?

rgds
Michael

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-webserial-library/#comment-1002082 Thu, 23 Jan 2025 10:47:28 +0000 https://randomnerdtutorials.com/?p=105247#comment-1002082 In reply to Dave Walmsley.

Hi.
We’ll need to rewrite this tutorial to be compatible with the latest version.
Thanks for your patience.
Regards,
Sara

]]>
By: Dave Walmsley https://randomnerdtutorials.com/esp32-webserial-library/#comment-1001672 Tue, 21 Jan 2025 21:56:15 +0000 https://randomnerdtutorials.com/?p=105247#comment-1001672 Plus one for a re-write, but I noticed the Github page uses WebSerial.onMessage() and a WebSerial.loop()

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-webserial-library/#comment-1000938 Sat, 18 Jan 2025 18:57:34 +0000 https://randomnerdtutorials.com/?p=105247#comment-1000938 In reply to Ryan.

Hi.
We’ll try to update this tutorial soon.
Regards,
Sara

]]>
By: Ryan https://randomnerdtutorials.com/esp32-webserial-library/#comment-1000694 Fri, 17 Jan 2025 15:38:14 +0000 https://randomnerdtutorials.com/?p=105247#comment-1000694 In reply to Tom.

Yeah I came here to say this. I have just wasted many hours trying to make this work before realising that this tutorial is nearly 10 years old and uses completely the wrong libraries.

swear words

]]>