esp8266 / esp8266/Arduino

need help with yet another "'Base64_decode' was not declared in this scope" presisting Error.

Open
#8,399 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
16.7k
Forks
13.1k
PR merge metrics
No merged PRs in 30d

Description

#### Platform

- Hardware: ESP-12/ESP8266
- Core Version: AVR V1.8.3 / esp8266 V3.0.2??
- Development Env: Arduino IDE
- Operating System: Windows 10

### Settings in IDE

- Module: NodeMCU 1.0 (ESP-12E Module)
- Flash Mode: "2"
- Flash Size: 4MB
- lwip Variant: v2 Lower Memory
- Reset Method: ??
- Flash Frequency: 40MHz??
- CPU Frequency: 80Mhz
- Upload Using: SERIAL
- Upload Speed: 115200

### Problem Description

Its a persistent Error.
I have used 3 library's and 4 example sketches.
I have Followed and tried almost every post on the error in google(+more).

ive heard of the built in base64 for esp8266, but i cant find anything to confirm i have it (or that it works in IDE^), when i tried removing "#include " and the error still persisted, but no error for removing that line.

its only the "'Base64_decode' was not declared" Error.

Well The example code:
### [MCVE](https://stackoverflow.com/help/mcve) Sketch

```cpp

#include

void setup() {
Serial.begin(115200);

char * toDecode = "SGVsbG8gV29ybGQgVGVzdGluZyBiYXNlNjQgZW5jb2Rpbmch";
size_t outputLength;

unsigned char * decoded = Base64_decode(toDecode, strlen(toDecode), &outputLength);

Serial.print("Length of decoded message: ");
Serial.println(outputLength);

Serial.printf("%.*s", outputLength, decoded);
free(decoded);
}

void loop() {}
```
Error That i cannot solve/fix/Find at all is below, its almost taunting me lol, but yea long story short,
i have searched through google, reddit and git.i have spent hours playing, Searching and seeing the same thing with this problem, yet still no fix that i have found.
```
CryptoESPBase64Test:9:29: error: 'Base64_decode' was not declared in this scope
9 | unsigned char * decoded = Base64_decode(toDecode, strlen(toDecode), &outputLength);
| ^~~~~~~~~~~~~
exit status 1
'Base64_decode' was not declared in this scope
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.