no matching function for call to 'PubSubClient::PubSubClient(const char [1])'

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Tim-
Normal user
Posts: 10
Joined: 05 Feb 2016, 13:51

no matching function for call to 'PubSubClient::PubSubClient(const char [1])'

#1 Post by Tim- » 05 Feb 2016, 13:59

Hello guys,

I followed this tutorial:
http://www.esp8266.nu/index.php/Tutoria ... are_Upload
I pasted the libraries in the right folders and I updated all of them.

after following all the steps is gain this error:
'emergencyReset' was not declared in this scope

I simply "fixed" this error by updating the libraries.

but now i keep getting this error and i don't know how to fix this.
no matching function for call to 'PubSubClient::PubSubClient(const char [1])'

can you guys help me?


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

Re: no matching function for call to 'PubSubClient::PubSubClient(const char [1])'

#3 Post by chrille » 06 Feb 2016, 16:39

Tim- wrote: I followed this tutorial:
http://www.esp8266.nu/index.php/Tutoria ... are_Upload
I pasted the libraries in the right folders and I updated all of them.

after following all the steps is gain this error:
'emergencyReset' was not declared in this scope

I simply "fixed" this error by updating the libraries.

but now i keep getting this error and i don't know how to fix this.
no matching function for call to 'PubSubClient::PubSubClient(const char [1])'

can you guys help me?
If you get "'emergencyReset' was not declared in this scope" you have most likely installed a version of the Arduino IDE newer than 1.6.5, which have some issues with ESPEasy. Updating the libraries will not fix that. For now you need to use IDE 1.6.5.

With regards to the pubsubclient library - there's 2 versions of the library - unfortunately they are named identically and you need to look at what source files comes with the library to tell the difference, and they have different API's. The version that comes with ESPeasy is different from the one that's installed through the IDE library manager. You need to use the version, that comes with ESPeasy (or get the correct version from github - https://github.com/Imroy/pubsubclient)

- Jan
Jan Chrillesen, Denmark

Tim-
Normal user
Posts: 10
Joined: 05 Feb 2016, 13:51

Re: no matching function for call to 'PubSubClient::PubSubClient(const char [1])'

#4 Post by Tim- » 08 Feb 2016, 14:26

Hallo,

Thank for helping!

I indeed had a newer version of arduino (1.6.7). I didn't know there was much difference between the versions of arduino.
after deleting and istalling the 1.6.5 version there were no errors.

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: no matching function for call to 'PubSubClient::PubSubClient(const char [1])'

#5 Post by tozett » 08 Feb 2016, 14:34

looks like "SOLVED" ...
;)

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 30 guests