'base64_encode' was not declared in this scope

8 years 7 months ago #3204 by chocjulio33
Here is my code example of how i solved this! Compiles fine in 1.6.4
Attachments:

Please Log in or Create an account to join the conversation.

8 years 6 months ago - 8 years 6 months ago #3252 by NightOne
I figured out why the ESP8266's are not using the base64 library as installed in the library folder.... the ESP8266 add in for arduino IDE includes its own version of base64...so when you compile it fails as it is really not decalred in scope...
The easiest way to fix it is to simply delete the base64.c files in the ESP8266 compile folder

In windows it should be somewhere like this:

C:\Users\12345\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\cores\esp8266

Note that I am using the latest version 2.2.0

Go here if you are unsure:

C:\Users\12345\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\
the click on the folder number of the version you are using then click on the following \cores\esp8266
in this folder you will find 2 base64 files....delete these and you compile will work....

Please note that when you update the ESP8266 in the board manager it will write the base64 files back.

Option 2 is to rewrite your code to use the methods defined in the base64 files provided by ESP8266 community.

Please Log in or Create an account to join the conversation.

8 years 6 months ago #3255 by chocjulio33
I found that also and you are correct! but it doesn't appear to be same base64 package better to include it seperatly as in my code example deleting it sure to cause issues in the future! Might want to check with the esp8266 guys on that one but seems like a bad ideal! Just include as i did with quotes and put the library in the source folder should work fine. The working example is in the above code!

ChocJulio
The following user(s) said Thank You: NightOne

Please Log in or Create an account to join the conversation.

8 years 6 months ago #3257 by NightOne
Agree your approach is better....

Please Log in or Create an account to join the conversation.

7 years 1 month ago #3874 by bunnyluo
Why couldn't I download your code?

Please Log in or Create an account to join the conversation.

Time to create page: 0.268 seconds

Forum latest

  • No posts to display.