Page 1 of 1

ESPEasy compilation FW R119

Posted: 10 Aug 2016, 08:45
by piokuc
Hi

I try compile soft version R118 or R119 for Espeasy and i have a problem and compilation is not finished:

Code: Select all

Arduino:1.6.9 (Windows 10), Płytka:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)"

ESPEasy:253: error: no matching function for call to 'PubSubClient::PubSubClient(WiFiClient&)'

PubSubClient MQTTclient(mqtt);

^

C:\Users\pkuchciak\Desktop\ESPEasy_R118\Source\ESPEasy\ESPEasy.ino:253:29: note: candidates are:

In file included from C:\Users\pkuchciak\Desktop\ESPEasy_R118\Source\ESPEasy\ESPEasy.ino:220:0:

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:47:4: note: PubSubClient::PubSubClient(String, uint16_t)

PubSubClient(String hostname, uint16_t port = 1883);

^

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:47:4: note: no known conversion for argument 1 from 'WiFiClient' to 'String'

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:46:4: note: PubSubClient::PubSubClient(IPAddress&, uint16_t)

PubSubClient(IPAddress &ip, uint16_t port = 1883);

^

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:46:4: note: no known conversion for argument 1 from 'WiFiClient' to 'IPAddress&'

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:43:4: note: PubSubClient::PubSubClient()

PubSubClient();

^

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:43:4: note: candidate expects 0 arguments, 1 provided

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:16:7: note: PubSubClient::PubSubClient(const PubSubClient&)

class PubSubClient {

^

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:16:7: note: no known conversion for argument 1 from 'WiFiClient' to 'const PubSubClient&'

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:16:7: note: PubSubClient::PubSubClient(PubSubClient&&)

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:16:7: note: no known conversion for argument 1 from 'WiFiClient' to 'PubSubClient&&'

C:\Users\pkuchciak\Desktop\ESPEasy_R118\Source\ESPEasy\Controller.ino: In function 'void MQTTConnect()':

Controller:73: error: 'class PubSubClient' has no member named 'setServer'

MQTTclient.setServer(MQTTBrokerIP, Settings.ControllerPort);

^

Controller:74: error: 'class PubSubClient' has no member named 'setCallback'

MQTTclient.setCallback(callback);

^

Controller:96: error: no matching function for call to 'PubSubClient::connect(const char*, char [26], char [64], const char*, int, int, const char [16])'

MQTTresult = MQTTclient.connect(clientid.c_str(), SecuritySettings.ControllerUser, SecuritySettings.ControllerPassword, LWTTopic.c_str(), 0, 0, "Connection Lost");

^

C:\Users\pkuchciak\Desktop\ESPEasy_R118\Source\ESPEasy\Controller.ino:96:168: note: candidates are:

In file included from C:\Users\pkuchciak\Desktop\ESPEasy_R118\Source\ESPEasy\ESPEasy.ino:220:0:

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:62:9: note: bool PubSubClient::connect(String)

bool connect(String id);

^

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:62:9: note: candidate expects 1 argument, 7 provided

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:65:9: note: bool PubSubClient::connect(String, String, uint8_t, bool, String)

bool connect(String id, String willTopic, uint8_t willQos, bool willRetain, String willMessage);

^

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:65:9: note: candidate expects 5 arguments, 7 provided

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:101:9: note: bool PubSubClient::connect(MQTT::Connect&)

bool connect(MQTT::Connect &conn);

^

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:101:9: note: candidate expects 1 argument, 7 provided

exit status 1

no matching function for call to 'PubSubClient::PubSubClient(WiFiClient&)'

Ten raport powinien zawierać więcej informacji jeśli w 

File -> Preferencje zostanie włączona opcja "Pokaż

szczegółowe informacje podczas kompilacji"

But when compile R108 it works all OK and generate for me file ok.
Please help me...

Re: ESPEasy compilation FW R119

Posted: 10 Aug 2016, 09:34
by Martinus
piokuc wrote:Hi

I try compile soft version R118 or R119 for Espeasy and i have a problem and compilation is not finished:

Code: Select all

Arduino:1.6.9 (Windows 10), Płytka:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)"

ESPEasy:253: error: no matching function for call to 'PubSubClient::PubSubClient(WiFiClient&)'

PubSubClient MQTTclient(mqtt);

^

C:\Users\pkuchciak\Desktop\ESPEasy_R118\Source\ESPEasy\ESPEasy.ino:253:29: note: candidates are:

In file included from C:\Users\pkuchciak\Desktop\ESPEasy_R118\Source\ESPEasy\ESPEasy.ino:220:0:

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:47:4: note: PubSubClient::PubSubClient(String, uint16_t)

PubSubClient(String hostname, uint16_t port = 1883);

^

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:47:4: note: no known conversion for argument 1 from 'WiFiClient' to 'String'

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:46:4: note: PubSubClient::PubSubClient(IPAddress&, uint16_t)

PubSubClient(IPAddress &ip, uint16_t port = 1883);

^

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:46:4: note: no known conversion for argument 1 from 'WiFiClient' to 'IPAddress&'

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:43:4: note: PubSubClient::PubSubClient()

PubSubClient();

^

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:43:4: note: candidate expects 0 arguments, 1 provided

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:16:7: note: PubSubClient::PubSubClient(const PubSubClient&)

class PubSubClient {

^

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:16:7: note: no known conversion for argument 1 from 'WiFiClient' to 'const PubSubClient&'

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:16:7: note: PubSubClient::PubSubClient(PubSubClient&&)

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:16:7: note: no known conversion for argument 1 from 'WiFiClient' to 'PubSubClient&&'

C:\Users\pkuchciak\Desktop\ESPEasy_R118\Source\ESPEasy\Controller.ino: In function 'void MQTTConnect()':

Controller:73: error: 'class PubSubClient' has no member named 'setServer'

MQTTclient.setServer(MQTTBrokerIP, Settings.ControllerPort);

^

Controller:74: error: 'class PubSubClient' has no member named 'setCallback'

MQTTclient.setCallback(callback);

^

Controller:96: error: no matching function for call to 'PubSubClient::connect(const char*, char [26], char [64], const char*, int, int, const char [16])'

MQTTresult = MQTTclient.connect(clientid.c_str(), SecuritySettings.ControllerUser, SecuritySettings.ControllerPassword, LWTTopic.c_str(), 0, 0, "Connection Lost");

^

C:\Users\pkuchciak\Desktop\ESPEasy_R118\Source\ESPEasy\Controller.ino:96:168: note: candidates are:

In file included from C:\Users\pkuchciak\Desktop\ESPEasy_R118\Source\ESPEasy\ESPEasy.ino:220:0:

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:62:9: note: bool PubSubClient::connect(String)

bool connect(String id);

^

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:62:9: note: candidate expects 1 argument, 7 provided

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:65:9: note: bool PubSubClient::connect(String, String, uint8_t, bool, String)

bool connect(String id, String willTopic, uint8_t willQos, bool willRetain, String willMessage);

^

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:65:9: note: candidate expects 5 arguments, 7 provided

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:101:9: note: bool PubSubClient::connect(MQTT::Connect&)

bool connect(MQTT::Connect &conn);

^

C:\Users\pkuchciak\Desktop\arduino-1.6.9-windows\arduino-1.6.9\libraries\pubsubclient\src/PubSubClient.h:101:9: note: candidate expects 1 argument, 7 provided

exit status 1

no matching function for call to 'PubSubClient::PubSubClient(WiFiClient&)'

Ten raport powinien zawierać więcej informacji jeśli w 

File -> Preferencje zostanie włączona opcja "Pokaż

szczegółowe informacje podczas kompilacji"

But when compile R108 it works all OK and generate for me file ok.
Please help me...
Update your pubsub library to version 2.6 and it should work.

Re: ESPEasy compilation FW R119

Posted: 10 Aug 2016, 09:50
by piokuc
Can you help me from where i can cownload and update this pubsub library ?

Ok i found it:
https://github.com/knolleary/pubsubclie ... s/tag/v2.6 download and replace and ok i compile file bin.

But i have a question. When i no set configuration in ESPeasy.ino like ip, ip domoticz etc) and compile file and then write to my nodeMCU which now working with setup ip, ip domoticz and etc , settings will be reset after update firmware ?

Re: ESPEasy compilation FW R119

Posted: 10 Aug 2016, 12:11
by JR01
Did you update your pubs client on Arduino to version 2.6 ?

Had the same, got fixed after I did that.

(And the latest version of boards manager, think 2.3)

Re: ESPEasy compilation FW R119

Posted: 10 Aug 2016, 12:15
by piokuc
Yes i update pubsubclient to 2.6 version from link which i send i previous post.

But when i compile firmware without custom settings( default) and now update to my nodeMCU with configuring ip and etc , my setting in nodeMCU will be erase and replace with default ?

Re: ESPEasy compilation FW R119

Posted: 10 Aug 2016, 12:40
by Martinus
piokuc wrote:Yes i update pubsubclient to 2.6 version from link which i send i previous post.

But when i compile firmware without custom settings( default) and now update to my nodeMCU with configuring ip and etc , my setting in nodeMCU will be erase and replace with default ?
If you change the defaults in the source code, these values will only be used in case you flash onto a new module (without any previous settings) or if you explicitly erase the configured settings with the 'reset' command.

So upgrading to a newer build should normally not affect your settings.

Re: ESPEasy compilation FW R119

Posted: 10 Aug 2016, 12:49
by piokuc
Thanks for help.

Can you tell me also how reset my nodeMCU to default settings ? How send command "Reset" ?

Re: ESPEasy compilation FW R119

Posted: 10 Aug 2016, 21:25
by JR01
Several ways: if you are able to connect with a serial interface to ESP using a FDTI, several commands below. Type into serial interface, I have a Mac, use CoolTerm. Command = Reset on serial command. else use esptool.

The following commands can be used by the esp easy.

- Delay Set the update interval of your attached devices. "Delay 10" means new values are being sent to your controller every 10 seconds.

- Debug Set the debug level. 1: Error 2: Info 3: Debug 4: Debug more. "Debug 4" sets the debug level to debug_more.
- IP Set a static ip adres.
- WifiSSID Set the SSID of your homenetwork. "WifiSSID yournetworkname"
- WifiKey Set the WPA key of your homenetwork "WifiKey yoursecretkey"
- WifiAPKey Set the spa key of this esp unit. This key needs to be used by clients when they want to connect in AP modus.
- WifiScan Scan for active wifi networks. This can be used to test if your wifi is recognized and to verify whether the wifi part is working or not.
- WifiConnect Connect to wifi.
- WifiDisConnect Disconnect from your wifi network.
- Reboot Reboot esp module
- Reset Reset the esp module to it's defaults. It uses the values from the sketch when it's uploaded.
- Save Save changes to the esp's EEPROM

- Settings Show the current settings stored in the esp's EEPROM

Re: ESPEasy compilation FW R119

Posted: 11 Aug 2016, 07:46
by piokuc
Very very thanks for help :)