Hi,
compiling the WebServers that use WebSockets (e.g. 2_3_Outputs_Websockets) for the esp32-c3-devkitc-02 board I’m getting following error:
/home/service/.platformio/packages/toolchain-riscv32-esp/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: .pio/build/esp32-c3-devkitc-02/libedd/libESP Async WebServer.a(AsyncWebSocket.cpp.o): in function `String::operator+=(char const*)’:
/home/service/.platformio/packages/framework-arduinoespressif32/cores/esp32/WString.h:140: undefined reference to `SHA1Init’
/home/service/.platformio/packages/toolchain-riscv32-esp/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: .pio/build/esp32-c3-devkitc-02/libedd/libESP Async WebServer.a(AsyncWebSocket.cpp.o): in function `String::buffer() const’:
/home/service/.platformio/packages/framework-arduinoespressif32/cores/esp32/WString.h:339: undefined reference to `SHA1Update’
/home/service/.platformio/packages/toolchain-riscv32-esp/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld: .pio/build/esp32-c3-devkitc-02/libedd/libESP Async WebServer.a(AsyncWebSocket.cpp.o): in function `AsyncWebSocketResponse::AsyncWebSocketResponse(String const&, AsyncWebSocket*)’:
/home/service/Documents/ESP Web Server Course/Module 3 Web Servers/2_4_Outputs_Slider_PWM_WebSockets/.pio/libdeps/esp32-c3-devkitc-02/ESP Async WebServer/src/AsyncWebSocket.cpp:1271: undefined reference to `SHA1Final’
collect2: error: ld returned 1 exit status
*** [.pio/build/esp32-c3-devkitc-02/firmware.elf] Error 1
Is there a workaround to fix the problem?
Many thanks!
Regards,
Enrico
Maybe is this the solution?
https://github.com/me-no-dev/ESPAsyncWebServer/pull/999/commits/8a43124ee8dead6298821c0e0fe67ebc98cfae8d
Regards,
Enrico