• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Sarah. Help !!! Module 2.3 websockets

Q&A Forum › Category: ESP32 › Sarah. Help !!! Module 2.3 websockets
0 Vote Up Vote Down
Jim asked 1 year ago

Hi. I’m back after a few weeks, at the course. Same Laptop, same esp32, Used Open project to get 2.3 loaded.
Changed SSID etc.  Repaired that 
mbedtls_md5_starts_ret(&_ctx);
mbedtls_md5_update_ret(&_ctx, data, len);
mbedtls_md5_finish_ret(&_ctx, _buf);
you mentioned previously. Use Ctrl + S to save.
2 hours spent trying to find problems and now the error report is just way too long.
BUILD FILESYS IMAGE … SUCCESS
UPLOAD FILESYS IMAGE = SUCCESS.
Click on the TICK icon get many error messages.
 
Here is the last few:
 
*** [.pio\build\esp32doit-devkit-v1\firmware.elf] Error 1
^
.pio/libdeps/esp32doit-devkit-v1/ESP Async WebServer/src/WebAuthentication.cpp: In function ‘bool getMD5(uint8_t*, uint16_t, char*)’:
.pio/libdeps/esp32doit-devkit-v1/ESP Async WebServer/src/WebAuthentication.cpp:74:1: error: ‘Linking’ was not declared in this scope
Linking .pio\build\esp32doit-devkit-v1\firmware.elf
^~~~~~~
.pio/libdeps/esp32doit-devkit-v1/ESP Async WebServer/src/WebAuthentication.cpp:92:25: error: expected ‘;’ before ‘)’
token
for(i = 0; i < 16; i++) {
^
;
Compiling .pio\build\esp32doit-devkit-v1\lib775\ESP Async WebServer\WebHandlers.cpp.o
*** [.pio\build\esp32doit-devkit-v1\lib775\ESP Async WebServer\WebAuthentication.cpp.o] Error 1
============================================ [FAILED] Took 41.65 seconds ============================================
 

Question Tags: Websever socket
5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Hi.
Instead of changing:
mbedtls_md5_starts_ret(&_ctx);
mbedtls_md5_update_ret(&_ctx, data, len);
mbedtls_md5_finish_ret(&_ctx, _buf);
 
Do the following instead:
Instead of using the following in your platformio.ini file to include the library:
lib_deps = ESP Async WebServer
use the following instead:
lib_deps = https://github.com/me-no-dev/ESPAsyncWebServer.git
Save the platformio.ini file and compile and upload the code again to your board.
 
Let me know if this helps.
Regards,
Sara
 

0 Vote Up Vote Down
Jim answered 1 year ago

 
Hi Sarah,  I went to the git client download website but it is not clear to me how to proceed from there.
Web searches for this error did not yield anything I could decipher as being a solution for me.
(I’m on Windows 10 ver 22H2)
Library Manager: Installing git+https://github.com/me-no-dev/ESPAsyncWebServer.git
UserSideException: Please install Git client from https://git-scm.com/downloads
* The terminal process “C:\Users\user\.platformio\penv\Scripts\platformio.exe ‘run’, ‘–target’, ‘buildfs’, ‘–environment’, ‘esp32doit-devkit-v1′” terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.

0 Vote Up Vote Down
Jim answered 1 year ago

Later ……   I have followed this procedure.
https://www.howtogeek.com/832083/how-to-install-git-on-windows/
But the choices you have to make were not obvious to me but I have  snapshots along the way and it has installed.

It has resulted in a command prompt window with this text:
JimJtron@Dell-Lappy-JT MINGW64 ~
$
Re-launch PIO  and get this:

Resolving esp32doit-devkit-v1 dependencies…
Library Manager: Installing git+https://github.com/me-no-dev/ESPAsyncWebServer.git
git version 2.44.0.windows.1
Cloning into ‘C:\Users\user\.platformio\.cache\tmp\pkg-installing-fdj6b0ca’…

Library Manager: ESP Async WebServer@1.2.3+sha.f71e3d4 has been installed!
Library Manager: Resolving dependencies…
Library Manager: Installing me-no-dev/AsyncTCP @ ^1.1.1
Unpacking 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
Library Manager: AsyncTCP@1.1.1 has been installed!
Updating metadata for the vscode IDE…
Project has been successfully updated!

 

ANYHOW, & SOMEHOW, IT’S ALL WORKING !!!  The websocket method works as intended.
Tell me, why is it necessary to go through 4 processes to finally get the new code on-board the ESP32.?
Regards, Jim

0 Vote Up Vote Down
Jim answered 1 year ago

While your there I have the next module 2.4 working fine with PWM but the slider on another device (running chrome) is NOT updating & visa versa.  So there is something wrong with the Websocket portion somehow.
Regards, Jim

0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Hi.
Here are the fixes: https://rntlab.com/question/web-server-with-slider-doesnt-update-the-connected-clients/
Unfortunately, I didn’t have the time to update this project yet.
I’ll test it and update it soon.
I’m sorry for the issue,
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.