Page 1 of 1

Problem with Arduino IDE 1.6.6 ?

Posted: 11 Nov 2015, 23:35
by dlefol
Hello all,

I've just discovered this project and it sounds great. Thanks a lot to the developpers :) I wanted to give it a try tonight but have been unable to compile the code (tried R20 and R39). I have the Arduino IDE 1.6.6 instead of the advised 1.6.5. Could it come from there ?

I get several errors :

First error:
ESPEasy:140: error: no matching function for call to 'PubSubClient::PubSubClient(const char [1])'
I know this one is not due to not finding the library as if I change the parameter of the PubSubClient MQTTclient("") call, then it can find one of the function declared in the .h file and this error does not appear anymore.


Other errors:


ESPEasy:255: error: 'emergencyReset' was not declared in this scope

emergencyReset();


ESPEasy:257: error: 'LoadSettings' was not declared in this scope

LoadSettings();


... and it goes on like that.

I may have missed something very obvious so sorry if I have done something stupid. Haven't used an IDE for a long time...

Thanks

Re: Problem with Arduino IDE 1.6.6 ?

Posted: 12 Nov 2015, 11:41
by BertB
I do not know about 1.6.6. Until Martinus and the other sw development guys say it's okay, I stick to 1.6.5 with the prescribed ESP software package.

However, with respect to your problem, I think you forgot to put the libraries in the appropriate folder. Could that be the case?

Re: Problem with Arduino IDE 1.6.6 ?

Posted: 12 Nov 2015, 15:26
by dlefol
Hello,

Thanks for the reply.
I've installed version 1.6.5 to check if it helps.
I have less errors now, but I still have the one concerning the PubSubClient MQTTclient("") call.

I have copied the libraries as detailed in the wiki page and it seems that they are detected ok because the error message I get shows the various possible PubSubClient calls defined in the .h file but says that none of them accept the same type of parameters.

I am working with R20 for the moment (I will move to R39 once I can compile and it works fine with R20).

Re: Problem with Arduino IDE 1.6.6 ?

Posted: 12 Nov 2015, 18:53
by BertB
If you download R039 from Github, you see you will have one folder named Libraries.
Copy that folder to the same folder where your R039 folder is and restart Arduino IDE.
Now it should compile.

Example: I have both the R039 folder and the Libraries folder here :C:\Users\myname\Documents\Arduino 1.6.5

Re: Problem with Arduino IDE 1.6.6 ?

Posted: 12 Nov 2015, 21:03
by dlefol
ok I found the problem thanks to your indication.
I didn' t realise that I had a copy of the arduino library in mydocuments on top of the one in my program file folder (I m under windows).
I had the libraries in both places but one of them must have been not up to date or not copied properly as when I replaced them all again it worked.

Thanks a lot for your help

Re: Problem with Arduino IDE 1.6.6 ?

Posted: 12 Nov 2015, 21:20
by BertB
You're welcome

Re: Problem with Arduino IDE 1.6.6 ?

Posted: 14 Nov 2015, 21:02
by orca30
I have a similar problem. I have Arduino IDE 1.6.5 and downloaded easyESP from

https://github.com/ESP8266nu/ESPEasy

(espeasy-master.zip)

however I did not find any library subdirectories here. What am I doing wrong??

Re: Problem with Arduino IDE 1.6.6 ?

Posted: 14 Nov 2015, 21:04
by orca30
hello,

I am using Arduino IDE 1.6.5 and downloaded espeasy-master.zip from

https://github.com/ESP8266nu/ESPEasy

however, I did not find any libraries. What am I doing wrong here, and where is the complete ZIP file??

Re: Problem with Arduino IDE 1.6.6 ?

Posted: 14 Nov 2015, 21:09
by orca30

Re: Problem with Arduino IDE 1.6.6 ?

Posted: 14 Nov 2015, 21:33
by dlefol
Hello,

Actually I used the .zip file available on sourceforge not the one from github as I couldn' t find the libraries in the github repo either (I guess they are separate project with their own repo).

The sourceforge link is given in the wiki page:
http://www.esp8266.nu/index.php/Tutoria ... are_Upload

and the link is:
http://sourceforge.net/projects/espeasy/files

Hope this helps.

Re: Problem with Arduino IDE 1.6.6 ?

Posted: 14 Nov 2015, 22:52
by BertB
If you go to Stable/Easy on the home page, you can download R039 with the libraries.

Re: Problem with Arduino IDE 1.6.6 ?

Posted: 15 Nov 2015, 14:40
by orca30
Thanks for the reply. The sourceforge link was down yesterday, now its working again.

regards,
eric

Re: Problem with Arduino IDE 1.6.6 ?

Posted: 14 Dec 2015, 16:57
by chrille
dlefol wrote: Other errors:


ESPEasy:255: error: 'emergencyReset' was not declared in this scope

emergencyReset();


ESPEasy:257: error: 'LoadSettings' was not declared in this scope

LoadSettings();


... and it goes on like that.

I may have missed something very obvious so sorry if I have done something stupid. Haven't used an IDE for a long time...

Thanks
(following up on old message, since I noticed the same issue)

It seems that Arduino 1.6.6. requires you to properly declare function prototypes - see this thread https://github.com/esp8266/Arduino/issues/1066

I tried to declare a few functions before setup() in ESPEasy.ino and the errors goes away for these functions. So we need to make sure all function prototypes are defined to be able to compile on 1.6.6. This is also an issue with ESPEasyMySensors

- Jan