esp8266 / esp8266/Arduino

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

Aperta
#8,399 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C++
Stelle
16.7k
Fork
13.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

#### 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
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Iniziare dallo sketch MCVE e dal Base64.h della libreria Arduino selezionata; verificare se quell'header dichiara Base64_decode e confermare quale libreria sta compilando l'IDE. Riprodurre l'errore del compilatore segnalato con le impostazioni ESP8266 e Arduino IDE elencate; l'attività è completata quando l'esempio viene compilato e la chiamata di decodifica viene risolta.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
arduino, cpp
Ambito
embedded-iot
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.