Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By AcmeUK
#20418 Hi Gerry

Thanks for the reply.

On my system WString.h is in C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino with arduino.h etc so I do not understand why the compiler cannot find it.

In WString.h there is the entry
class __FlashStringHelper;
#define F(string_literal) (reinterpret_cast<const __FlashStringHelper *>(PSTR(string_literal)))

I installed V1.6.4 using the arduino-1.6.4-windows.exe from the Arduino website.

Regards

BillP
User avatar
By GerryKeely
#20423 Hi BillP

You will need to find the version provided with the ESP8266 distribution.This should be under ApplicationData on Windows as mentioned in my previous email. If not you might have to reinstall the ESP8266 package using the board manager.

regards

Gerry
User avatar
By AcmeUK
#20675 Hi Gerry

Thanks for your reply.

Your reply reminded me that when I upgraded to V1.6.4 that everything other than my sketches got zapped.
So I installed ESP8266 support using the Boards Manager tool and the information here https://github.com/esp8266/Arduino
I did a reboot and same problem.

I saw that V1.6.5 of the IDE had been released so I installed that and installed ESP8266 support as above.
I did a reboot and same problem.

I then installed the Sandeep Mistry fork of the ESP8266 Arduino add-on as detailed here https://github.com/sandeepmistry/esp8266-Arduino
Again a reboot and the same problem.

WString.h is now in multiple places but the complier cannot find it. I suspect it it a path problem.

I am running Win 7 64 bit.

Hopefully someone has a solution to this.

BillP