adafruit / adafruit/Adafruit-MCP23017-Arduino-Library

ESP32 LAN8720 MCP23017 cant compile with Asyncwebsockets

Open
#101 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
385
Forks
204
PR merge metrics
No merged PRs in 30d

Description

If you're sure this issue is a defect in the code and checked the steps above
please fill in the following fields to provide enough troubleshooting information.
You may delete the guideline and text above to just leave the following details:

- Arduino board: ESP32-Dev Board / WT32-ETH

- Arduino IDE version (found in Arduino -> About Arduino menu): 2.2.2

- ESP32 Core Version 3.0.0

Errormessage:
``
Arduino: 1.8.16 (Windows 10), Board: "WT32-ETH01 Ethernet Module, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), QIO, 80MHz, 921600, None, Disabled"

H:\ArduinoNeu\Arduino\portable\sketchbook\libraries\async-esp-fs-webserver-master\src\ESPAsyncWebServer\src\WebAuthentication.cpp: In function 'bool getMD5(uint8_t*, uint16_t, char*)':

H:\ArduinoNeu\Arduino\portable\sketchbook\libraries\async-esp-fs-webserver-master\src\ESPAsyncWebServer\src\WebAuthentication.cpp:80:3: error: 'mbedtls_md5_starts_ret' was not declared in this scope; did you mean 'mbedtls_md5_starts'?

80 | mbedtls_md5_starts_ret(&_ctx);

| ^~~~~~~~~~~~~~~~~~~~~~

| mbedtls_md5_starts

H:\ArduinoNeu\Arduino\portable\sketchbook\libraries\async-esp-fs-webserver-master\src\ESPAsyncWebServer\src\WebAuthentication.cpp:81:3: error: 'mbedtls_md5_update_ret' was not declared in this scope; did you mean 'mbedtls_md5_update'?

81 | mbedtls_md5_update_ret(&_ctx, data, len);

| ^~~~~~~~~~~~~~~~~~~~~~

| mbedtls_md5_update

H:\ArduinoNeu\Arduino\portable\sketchbook\libraries\async-esp-fs-webserver-master\src\ESPAsyncWebServer\src\WebAuthentication.cpp:82:3: error: 'mbedtls_md5_finish_ret' was not declared in this scope; did you mean 'mbedtls_md5_finish'?

82 | mbedtls_md5_finish_ret(&_ctx, _buf);

| ^~~~~~~~~~~~~~~~~~~~~~

| mbedtls_md5_finish

H:\ArduinoNeu\Arduino\portable\sketchbook\libraries\async-esp-fs-webserver-master\src\ESPAsyncWebServer\src\AsyncWebSocket.cpp: In member function 'void AsyncWebSocketClient::_queueMessage(AsyncWebSocketMessage*)':

H:\ArduinoNeu\Arduino\portable\sketchbook\libraries\async-esp-fs-webserver-master\src\ESPAsyncWebServer\src\AsyncWebSocket.cpp:622:7: error: 'ets_printf' was not declared in this scope; did you mean 'vswprintf'?

622 | ets_printf(String(F("ERROR: Too many messages queued\n")).c_str());

| ^~~~~~~~~~

| vswprintf

H:\ArduinoNeu\Arduino\portable\sketchbook\libraries\async-esp-fs-webserver-master\src\ESPAsyncWebServer\src\AsyncWebSocket.cpp: In constructor 'AsyncWebSocketResponse::AsyncWebSocketResponse(const String&, AsyncWebSocket*)':

H:\ArduinoNeu\Arduino\portable\sketchbook\libraries\async-esp-fs-webserver-master\src\ESPAsyncWebServer\src\AsyncWebSocket.cpp:1355:3: error: 'mbedtls_sha1_starts_ret' was not declared in this scope; did you mean 'mbedtls_sha1_starts'?

1355 | mbedtls_sha1_starts_ret(&ctx);

| ^~~~~~~~~~~~~~~~~~~~~~~

| mbedtls_sha1_starts

H:\ArduinoNeu\Arduino\portable\sketchbook\libraries\async-esp-fs-webserver-master\src\ESPAsyncWebServer\src\AsyncWebSocket.cpp:1356:3: error: 'mbedtls_sha1_update_ret' was not declared in this scope; did you mean 'mbedtls_sha1_update'?

1356 | mbedtls_sha1_update_ret(&ctx, (const unsigned char*)key.c_str(), key.length());

| ^~~~~~~~~~~~~~~~~~~~~~~

| mbedtls_sha1_update

H:\ArduinoNeu\Arduino\portable\sketchbook\libraries\async-esp-fs-webserver-master\src\ESPAsyncWebServer\src\AsyncWebSocket.cpp:1357:3: error: 'mbedtls_sha1_finish_ret' was not declared in this scope; did you mean 'mbedtls_sha1_finish'?

1357 | mbedtls_sha1_finish_ret(&ctx, hash);

| ^~~~~~~~~~~~~~~~~~~~~~~

| mbedtls_sha1_finish

exit status 1

Fehler beim Kompilieren für das Board WT32-ETH01 Ethernet Module.

Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.
``

I cant show all the code here, because its over 1000 lines.

If i remove MCP23017, its compiling and everything works.

Ive seen something about GPIO mapping but im not sure how to solve everything.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the build with the WT32-ETH01 board, Arduino IDE 2.2.2, and ESP32 Core 3.0.0 using AsyncWebSockets and MCP23017. Start by inspecting src/ESPAsyncWebServer/src/WebAuthentication.cpp and AsyncWebSocket.cpp at the reported mbedTLS and ets_printf errors; done means the combined sketch compiles successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
arduino, cpp
Domain
build-system, embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.