Problem with Arduino IDE 1.6.6 ?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
dlefol
Normal user
Posts: 26
Joined: 11 Nov 2015, 23:28

Problem with Arduino IDE 1.6.6 ?

#1 Post by dlefol » 11 Nov 2015, 23:35

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

BertB
Normal user
Posts: 1020
Joined: 25 Apr 2015, 14:39

Re: Problem with Arduino IDE 1.6.6 ?

#2 Post by BertB » 12 Nov 2015, 11:41

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?

dlefol
Normal user
Posts: 26
Joined: 11 Nov 2015, 23:28

Re: Problem with Arduino IDE 1.6.6 ?

#3 Post by dlefol » 12 Nov 2015, 15:26

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).

BertB
Normal user
Posts: 1020
Joined: 25 Apr 2015, 14:39

Re: Problem with Arduino IDE 1.6.6 ?

#4 Post by BertB » 12 Nov 2015, 18:53

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

dlefol
Normal user
Posts: 26
Joined: 11 Nov 2015, 23:28

Re: Problem with Arduino IDE 1.6.6 ?

#5 Post by dlefol » 12 Nov 2015, 21:03

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

BertB
Normal user
Posts: 1020
Joined: 25 Apr 2015, 14:39

Re: Problem with Arduino IDE 1.6.6 ?

#6 Post by BertB » 12 Nov 2015, 21:20

You're welcome

orca30
Normal user
Posts: 6
Joined: 14 Nov 2015, 20:58

Re: Problem with Arduino IDE 1.6.6 ?

#7 Post by orca30 » 14 Nov 2015, 21:02

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??

orca30
Normal user
Posts: 6
Joined: 14 Nov 2015, 20:58

Re: Problem with Arduino IDE 1.6.6 ?

#8 Post by orca30 » 14 Nov 2015, 21:04

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??

orca30
Normal user
Posts: 6
Joined: 14 Nov 2015, 20:58

Re: Problem with Arduino IDE 1.6.6 ?

#9 Post by orca30 » 14 Nov 2015, 21:09


dlefol
Normal user
Posts: 26
Joined: 11 Nov 2015, 23:28

Re: Problem with Arduino IDE 1.6.6 ?

#10 Post by dlefol » 14 Nov 2015, 21:33

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.

BertB
Normal user
Posts: 1020
Joined: 25 Apr 2015, 14:39

Re: Problem with Arduino IDE 1.6.6 ?

#11 Post by BertB » 14 Nov 2015, 22:52

If you go to Stable/Easy on the home page, you can download R039 with the libraries.

orca30
Normal user
Posts: 6
Joined: 14 Nov 2015, 20:58

Re: Problem with Arduino IDE 1.6.6 ?

#12 Post by orca30 » 15 Nov 2015, 14:40

Thanks for the reply. The sourceforge link was down yesterday, now its working again.

regards,
eric

chrille
Normal user
Posts: 88
Joined: 26 Aug 2015, 15:11
Location: Horsens, Denmark

Re: Problem with Arduino IDE 1.6.6 ?

#13 Post by chrille » 14 Dec 2015, 16:57

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
Jan Chrillesen, Denmark

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests