Skip to content

Base64 compile error with Arduino RP2040 Connect #25

Description

@leopold-gravier

Hello,
Whenever I try to include ArduinoHttpServer on a project for an Arduino RP2040 Connect, it fails to compile.

Ex :

#include <ArduinoHttpServer.h>

void setup(){}
void loop() {}

Output :

In file included from C:\Users\L�opold\Documents\Arduino\libraries\ArduinoHttpServer\src/ArduinoHttpServer.h:10:0,
                 from C:\Users\Léopold\Documents\Associatif\Minotaure\Projet Initiation\Code\Test\Test.ino:1:
C:\Users\L�opold\Documents\Arduino\libraries\ArduinoHttpServer\src/internals/StreamHttpRequest.hpp: In member function 'bool ArduinoHttpServer::StreamHttpRequest<MAX_BODY_SIZE>::authenticate(const char*, const char*) const':
C:\Users\L�opold\Documents\Arduino\libraries\ArduinoHttpServer\src/internals/StreamHttpRequest.hpp:403:30: error: 'Base64' was not declared in this scope
    const int encodedLength = Base64.encodedLength(combinedInput.length());
                              ^~~~~~

exit status 1

Compilation error: exit status 1

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions