Open leopold-gravier opened 1 year ago
It appears that another "base64.h" file is loaded. There is one such file inside the libraries specific to the RP2040 Connect board.
The exact path is C:\Users/[Your username]\AppData\Local\Arduino15\packages\arduino\hardware\mbed_nano\4.0.4\cores\arduino\mbed\connectivity\mbedtls\include\mbedtls\base64.h
System info : Windows 10 Arduino IDE 2.2.1 ArduinoHttpServer 0.10.1 Base64 1.0.0
I have the same issue with a ESP8266 board, which also has its own base64.h implementation in the core.
Try to #define ARDUINO_HTTP_SERVER_NO_BASIC_AUTH.
It will remove the need for the less-standard Base64 library.
Thank you for your answer @QuickSander :)
Although, is this flag implemented in the latest release ? I tried it with the latest release available on the arduino IDE (ArduinoHttpServer 0.10.0), but I had the same error when compiling.
#define ARDUINO_HTTP_SERVER_NO_BASIC_AUTH
#include <ArduinoHttpServer.h>
void setup(){}
void loop() {}
It is only when I installed the library manually using this repo that it worked.
Hi, yes it is indeed available in the version online: https://github.com/QuickSander/ArduinoHttpServer/blob/8bdc3d5a18c6a310ce3c9af62cce38e260f7c056/src/internals/StreamHttpRequest.hpp#L20
Do you have an option to specify the #define in Arduino IDE? In PlatformIO it compiles fine, but PlatformIO also defines it with value '1'.
Hello, Whenever I try to include ArduinoHttpServer on a project for an Arduino RP2040 Connect, it fails to compile.
Ex :
Output :
The error message with verbose enabled
I invastigated a bit and it seems very specific to the Arduino RP2040 Connect board, I tried compiling the same script for a regular Nano board and it worked fine.