ESP8266 WiFi gas sensor failure

6 years 2 weeks ago #2191 by subsix
hello,

when i try to compile and load sketch to ESP8266 ( iot-playground.com/2-uncategorised/53-es...s-sensor-arduino-ide ) i got:

C:\arduino-1.6\libraries\arduino-base64\Base64.cpp:2:26: fatal error: avr/pgmspace.h: No such file or directory
#include <avr/pgmspace.h>
^
compilation terminated.


#include <ESP8266WiFi.h> and #include <Base64.h> are in libraries folder, Base64 come from: github.com/adamvr/arduino-base64


thx

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

6 years 1 week ago #2209 by Dhoerauf
I just got this to work last night. In the Base64 library open the Base64.cpp. Change the <avr/pgmspace.h> to "pgmspace.h" save and close. copy pgmspace.h into folder called pgmspace in your normal arduino libraries folder. If open close and reopen Arduino IDE. It compiles fine.

I also had to connect my GPIO0 like i was flashing firmware. All worked out great.
The following user(s) said Thank You: subsix

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

6 years 1 week ago #2212 by subsix
i will check Dhoerauf, thx you

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

Time to create page: 0.286 seconds