Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simple_server.ino #1391

Open
huster-songtao opened this issue Apr 1, 2024 · 5 comments
Open

simple_server.ino #1391

huster-songtao opened this issue Apr 1, 2024 · 5 comments

Comments

@huster-songtao
Copy link

Board: XIAO ESP32C3
https://github.com/espressif/arduino-esp32 3.0.0-alpha3
Arduino IDE 2.3.2

d:\Arduino\Sketchbook\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp: In function 'bool getMD5(uint8_t*, uint16_t, char*)':
d:\Arduino\Sketchbook\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp:74:3: error: 'mbedtls_md5_starts_ret' was not declared in this scope; did you mean 'mbedtls_md5_starts'?
74 | mbedtls_md5_starts_ret(&_ctx);
| ^~~~~~~~~~~~~~~~~~~~~~
| mbedtls_md5_starts
d:\Arduino\Sketchbook\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp:75:3: error: 'mbedtls_md5_update_ret' was not declared in this scope; did you mean 'mbedtls_md5_update'?
75 | mbedtls_md5_update_ret(&_ctx, data, len);
| ^~~~~~~~~~~~~~~~~~~~~~
| mbedtls_md5_update
d:\Arduino\Sketchbook\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp:76:3: error: 'mbedtls_md5_finish_ret' was not declared in this scope; did you mean 'mbedtls_md5_finish'?
76 | mbedtls_md5_finish_ret(&_ctx, _buf);
| ^~~~~~~~~~~~~~~~~~~~~~
| mbedtls_md5_finish
d:\Arduino\Sketchbook\libraries\ESPAsyncWebServer\src\AsyncEventSource.cpp: In member function 'void AsyncEventSourceClient::_queueMessage(AsyncEventSourceMessage*)':
d:\Arduino\Sketchbook\libraries\ESPAsyncWebServer\src\AsyncEventSource.cpp:189:7: error: 'ets_printf' was not declared in this scope; did you mean 'vswprintf'?
189 | ets_printf("ERROR: Too many messages queued\n");
| ^~~~~~~~~~
| vswprintf

exit status 1

Compilation error: exit status 1

@Lacuranas
Copy link

I had exactly the same issue with an esp32 Wroom-32D and the Arduino IDE 2.3.2. I have also tried other AsyncWebServer libraries with the same error.

@khawajamechatronics
Copy link

I am facing same issue.

@vincentTea
Copy link

My solution:
#define mbedtls_md5_starts_ret mbedtls_md5_starts
#define mbedtls_md5_update_ret mbedtls_md5_update
#define mbedtls_md5_finish_ret mbedtls_md5_finish
#define ets_printf log_e

@ednieuw
Copy link

ednieuw commented May 28, 2024

Without getting error with other esp32 boards I did do following edit in the library files
Compilation of my source code are error free for ESP32 DEV, ESP32 C3 DEV and ESP32 S3 DEV boards

Changed in Arduino\libraries\ESPAsyncWebServer\src\WebAuthentic
at line 75,76,77
mbedtls_md5_starts_ret --> mbedtls_md5_starts
mbedtls_md5_update_ret --> mbedtls_md5_update
mbedtls_md5_finish_ret --> mbedtls_md5_finish
in AsyncEventSource.cpp changed at line 189 ets_printf --> log_e
in AsyncWebSocket.cpp changed at line 549 ets_printf --> log_e

@johnzbesko
Copy link

OK, so I had the same problem. Started to modify a program I last touched a year or two ago and it wouldn't compile after I updated all my libraries and board definitions.

In addition to the changes listed by ednieuw above, I also changed in
~/libraries/ESPAsyncWebServer/src/AsyncWebSocket.cpp

line 323 if(_sent == _len){cpp -> if(_sent == _len){

Don't know how that "cpp" crept in there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants