• 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

building error in supplied library

Q&A Forum › Category: ESP32 › building error in supplied library
0 Vote Up Vote Down
Enrico asked 2 years ago

Hi!
Building the 1_1_Hello_World_WS for ESP32-C2 I’m getting following error:
.pio/libdeps/esp32-c3-devkitc-02/ESP Async WebServer/src/AsyncWebSocket.cpp: In member function ‘IPAddress AsyncWebSocketClient::remoteIP()’:

.pio/libdeps/esp32-c3-devkitc-02/ESP Async WebServer/src/AsyncWebSocket.cpp:840:28: error: call of overloaded ‘IPAddress(unsigned int)’ is ambiguous
return IPAddress(0U);

How can I fix this error?
Many thanks!
Enrico

Question Tags: ambiguous overload call
4 Answers
0 Vote Up Vote Down
Enrico answered 2 years ago

Looking up in the Internet I could fix this error modifying in the file …/1_1_Hello_World_WS/.pio/libdeps/esp32-c3-devkitc-02/ESP Async WebServer/src/AsyncWebSocket.cpp the line 840:
from “return IPAddress(0U);” to “return IPAddress(0Ul);” inside the remoteIP() method.
Rebuilding the code I’ve got then this error: “undefined reference to mbedtls_md5_starts”.
I could also fix also this error modifying in the file …/1_1_Hello_World_WS/.pio/libdeps/esp32-c3-devkitc-02/ESP Async WebServer/src/ the lines 74 till 76 inside the getMD5 method:
from

mbedtls_md5_starts(&_ctx);
mbedtls_md5_update(&_ctx, data, len);
mbedtls_md5_finish(&_ctx, _buf);
 
to
 
mbedtls_md5_starts_ret(&_ctx);
mbedtls_md5_update_ret(&_ctx, data, len);
mbedtls_md5_finish_ret(&_ctx, _buf);

 
Now I could build successfully the HelloWorld WebServer, but because I had to modify 2 files in the imported libraries, I don’t know how is the right way to handle such errors.
 
Do I have to wait for a fixed version of the library?
 
Best regards,
Enrico

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
We just updated the eBook with workarounds for that issue. Make sure you have the latest version (version 2.2): https://rntlab.com/module-1/welcome-build-web-servers/
 
Check page 188: “issue with Library Update” and check the several workaround options. Option number 2 is a quicker and easier solution.
 
Unfortunately, there’s nothing we can do besides those workarounds until the author of the library fixes the issue.
 
Regards,
Sara

0 Vote Up Vote Down
Enrico answered 2 years ago

Hi Sara,
many thanks for your answer.
Are there any release notes to be able to see what has been changed in the book from the previous version and which chapters should be read again?
Regards,
Enrico

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
You can see the changes described here: https://rntlab.com/ebooks-updated-smart-home-firebase-and-build-web-servers/
Scroll down to the section “What’s new?” of the Build Web Servers eBook.
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.