-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Open
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 <Base64.h>" 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 Sketch
#include <Base64.h>
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
Metadata
Metadata
Assignees
Labels
No labels