-
Notifications
You must be signed in to change notification settings - Fork 8
Ready for ESP32 V3 &V2 #2
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
base: master
Are you sure you want to change the base?
Conversation
Changed ESP32 board to 3.0.0 Changed in Arduino\libraries\ESPAsyncWebServer\src\WebAuthentic at line 75,76,77 //----------------- #ifdef ESP_ARDUINO_VERSION_MAJOR #if ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(3, 0, 0) // Code for version 3.x mbedtls_md5_init(&_ctx); mbedtls_md5_starts(&_ctx); mbedtls_md5_update(&_ctx, data, len); mbedtls_md5_finish(&_ctx, _buf); #else // Code for version 2.x #ifdef ESP32 mbedtls_md5_init(&_ctx); mbedtls_md5_starts_ret(&_ctx); mbedtls_md5_update_ret(&_ctx, data, len); mbedtls_md5_finish_ret(&_ctx, _buf); #else MD5Init(&_ctx); MD5Update(&_ctx, data, len); MD5Final(_buf, &_ctx); #endif #endif #endif //-------------------- in AsyncEventSource.cpp changed at line 189 ets_printf --> log_e for V3 in AsyncWebSocket.cpp changed at line 549 ets_printf --> log_e for V3 #ifdef ESP_ARDUINO_VERSION_MAJOR #if ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(3, 0, 0) // Code for version 3.x log_e("ERROR: Too many messages queued\n"); #else // Code for version 2.x ets_printf("ERROR: Too many messages queued\n"); #endif #endif
For what my opinion is worth (i.e. trying to make a remote relay module with the async library) - this addresses the changes needed to fix for the 3.x version of Arduino core for ESP32. |
also just anecdotal, but after getting |
I don't see code to initialize your wifi client? I can assume it is lower but I hate making assumptions if this is partial code. I'm assuming as well that if you do have the wifi initizlized that is outputting the IP address to serial output? Also: Same network or different VLANs (if applicable)? |
@Evs91 the issue was that I was declaring |
Same error message here :-( What can I do? |
Thank you, this is working for my setup |
Heya, I just crashed into the ol' issue of |
Yes, please merge 😗 |
Use the ESPAsyncWebServer regular maintained by Mathieu Carbou. |
Changed ESP32 board to 3.0.0
Changed in Arduino\libraries\ESPAsyncWebServer\src\WebAuthentic
at line 75,76,77
//-----------------
#ifdef ESP_ARDUINO_VERSION_MAJOR
#if ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(3, 0, 0)
// Code for version 3.x
mbedtls_md5_init(&_ctx);
mbedtls_md5_starts(&_ctx);
mbedtls_md5_update(&_ctx, data, len);
mbedtls_md5_finish(&_ctx, _buf);
#else
// Code for version 2.x
#ifdef ESP32
mbedtls_md5_init(&_ctx);
mbedtls_md5_starts_ret(&_ctx);
mbedtls_md5_update_ret(&_ctx, data, len);
mbedtls_md5_finish_ret(&_ctx, _buf);
#else
MD5Init(&_ctx);
MD5Update(&_ctx, data, len);
MD5Final(_buf, &_ctx);
#endif
#endif
#endif
//--------------------
in AsyncEventSource.cpp changed at line 189 ets_printf --> log_e for V3
in AsyncWebSocket.cpp changed at line 549 ets_printf --> log_e for V3
#ifdef ESP_ARDUINO_VERSION_MAJOR
#if ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(3, 0, 0)
// Code for version 3.x
log_e("ERROR: Too many messages queued\n");
#else
// Code for version 2.x
ets_printf("ERROR: Too many messages queued\n");
#endif
#endif