- Sat Mar 26, 2016 7:47 pm
#44115
Hi there,
Thank you for the great work on this frame work. I am having issues compiling.
I'm using Arduino IDE 1.6.8 with the following libraries.
Bounce2 version 2.1.0
JSON version 5.0.8
Pubsub version 2.6.0
All libraries were installed using the IDE library manager.
I am trying to compile the LightOnOff example sketch and receive the following error message.
Any help would be greatly appreciated.
Arduino: 1.6.8 (Linux), Board: "Generic ESP8266 Module, Serial, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck"
/home/hp2540p/Arduino/libraries/homie-esp8266-master/src/Homie/Boot/BootOta.cpp: In member function 'virtual void HomieInternals::BootOta::setup()':
/home/hp2540p/Arduino/libraries/homie-esp8266-master/src/Homie/Boot/BootOta.cpp:65:180: error: no matching function for call to 'ESP8266HTTPUpdate::update(const char*&, uint16_t&, char [28], char [56], bool&, char [60], bool)'
t_httpUpdate_return ret = ESPhttpUpdate.update(host, port, Config.get().ota.path, dataToPass, Config.get().ota.server.ssl.enabled, Config.get().ota.server.ssl.fingerprint, false);
^
/home/hp2540p/Arduino/libraries/homie-esp8266-master/src/Homie/Boot/BootOta.cpp:65:180: note: candidates are:
In file included from /home/hp2540p/Arduino/libraries/homie-esp8266-master/src/Homie/Boot/BootOta.hpp:6:0,
from /home/hp2540p/Arduino/libraries/homie-esp8266-master/src/Homie/Boot/BootOta.cpp:1:
/home/hp2540p/.arduino15/packages/esp8266/hardware/esp8266/2.0.0/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.h:52:29: note: t_httpUpdate_return ESP8266HTTPUpdate::update(const char*, const char*, const char*)
t_httpUpdate_return update(const char * url, const char * current_version = "", const char * httpsFingerprint = "");
^
/home/hp2540p/.arduino15/packages/esp8266/hardware/esp8266/2.0.0/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.h:52:29: note: candidate expects 3 arguments, 7 provided
/home/hp2540p/.arduino15/packages/esp8266/hardware/esp8266/2.0.0/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.h:53:29: note: t_httpUpdate_return ESP8266HTTPUpdate::update(const char*, uint16_t, const char*, const char*, bool, const char*)
t_httpUpdate_return update(const char * host, uint16_t port, const char * url = "/", const char * current_version = "", bool https = false, const char * httpsFingerprint = "");
^
/home/hp2540p/.arduino15/packages/esp8266/hardware/esp8266/2.0.0/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.h:53:29: note: candidate expects 6 arguments, 7 provided
In file included from /home/hp2540p/Arduino/libraries/homie-esp8266-master/src/Homie/Boot/BootOta.hpp:6:0,
from /home/hp2540p/Arduino/libraries/homie-esp8266-master/src/Homie/Boot/BootOta.cpp:1:
/home/hp2540p/.arduino15/packages/esp8266/hardware/esp8266/2.0.0/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.h:54:29: note: t_httpUpdate_return ESP8266HTTPUpdate::update(String, uint16_t, String, String, bool, String)
t_httpUpdate_return update(String host, uint16_t port, String url = "/", String current_version = "", bool https = false, String httpsFingerprint = "");
^
/home/hp2540p/.arduino15/packages/esp8266/hardware/esp8266/2.0.0/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.h:54:29: note: candidate expects 6 arguments, 7 provided
exit status 1
Error compiling for board Generic ESP8266 Module.
/home/hp2540p/Arduino/libraries/homie-esp8266-master/src/Homie/Boot/BootOta.cpp: In member function 'virtual void HomieInternals::BootOta::setup()':
/home/hp2540p/Arduino/libraries/homie-esp8266-master/src/Homie/Boot/BootOta.cpp:65:180: error: no matching function for call to 'ESP8266HTTPUpdate::update(const char*&, uint16_t&, char [28], char [56], bool&, char [60], bool)'
t_httpUpdate_return ret = ESPhttpUpdate.update(host, port, Config.get().ota.path, dataToPass, Config.get().ota.server.ssl.enabled, Config.get().ota.server.ssl.fingerprint, false);
^
/home/hp2540p/Arduino/libraries/homie-esp8266-master/src/Homie/Boot/BootOta.cpp:65:180: note: candidates are:
In file included from /home/hp2540p/Arduino/libraries/homie-esp8266-master/src/Homie/Boot/BootOta.hpp:6:0,
from /home/hp2540p/Arduino/libraries/homie-esp8266-master/src/Homie/Boot/BootOta.cpp:1:
/home/hp2540p/.arduino15/packages/esp8266/hardware/esp8266/2.0.0/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.h:52:29: note: t_httpUpdate_return ESP8266HTTPUpdate::update(const char*, const char*, const char*)
t_httpUpdate_return update(const char * url, const char * current_version = "", const char * httpsFingerprint = "");
^
/home/hp2540p/.arduino15/packages/esp8266/hardware/esp8266/2.0.0/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.h:52:29: note: candidate expects 3 arguments, 7 provided
/home/hp2540p/.arduino15/packages/esp8266/hardware/esp8266/2.0.0/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.h:53:29: note: t_httpUpdate_return ESP8266HTTPUpdate::update(const char*, uint16_t, const char*, const char*, bool, const char*)
t_httpUpdate_return update(const char * host, uint16_t port, const char * url = "/", const char * current_version = "", bool https = false, const char * httpsFingerprint = "");
^
/home/hp2540p/.arduino15/packages/esp8266/hardware/esp8266/2.0.0/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.h:53:29: note: candidate expects 6 arguments, 7 provided
In file included from /home/hp2540p/Arduino/libraries/homie-esp8266-master/src/Homie/Boot/BootOta.hpp:6:0,
from /home/hp2540p/Arduino/libraries/homie-esp8266-master/src/Homie/Boot/BootOta.cpp:1:
/home/hp2540p/.arduino15/packages/esp8266/hardware/esp8266/2.0.0/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.h:54:29: note: t_httpUpdate_return ESP8266HTTPUpdate::update(String, uint16_t, String, String, bool, String)
t_httpUpdate_return update(String host, uint16_t port, String url = "/", String current_version = "", bool https = false, String httpsFingerprint = "");
^
/home/hp2540p/.arduino15/packages/esp8266/hardware/esp8266/2.0.0/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.h:54:29: note: candidate expects 6 arguments, 7 provided
exit status 1
Error compiling for board Generic ESP8266 Module.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.