homieiot / homie-esp8266

💡 ESP8266 framework for Homie, a lightweight MQTT convention for the IoT
http://homieiot.github.io/homie-esp8266
MIT License
1.36k stars 308 forks source link

Cannot compile example provided - "shutters" #569

Closed suprimex closed 3 years ago

suprimex commented 5 years ago

Arduino 1.8.5 on Windows. All libraries used in sketch updated to latest version ( 21/feb/2019)

The example used - "SonoffDualShutters.ino"

Here is an output:

SonoffDualShutters:60: error: no matching function for call to 'Shutters::Shutters(const long unsigned int&, void (&)(), void (&)(), void (&)(), uint8_t (&)(), void (&)(uint8_t), const float&, void (&)(uint8_t))'

Shutters shutters(COURSE_TIME, shuttersUp, shuttersDown, shuttersHalt, shuttersGetState, shuttersSetState, CALIBRATION_RATIO, onShuttersLevelReached);

                                                                                                                                                     ^

C:\Users\<my-user-name>\Documents\Arduino\libraries\homie-esp8266\examples\SonoffDualShutters\SonoffDualShutters.ino:60:149: note: candidates are:

In file included from C:\Users\<my-user-name>\Documents\Arduino\libraries\homie-esp8266\examples\SonoffDualShutters\SonoffDualShutters.ino:22:0:

C:\Users\<my-user-name>\Documents\Arduino\libraries\arduino-shutters\src/Shutters.h:75:3: note: Shutters::Shutters()

   Shutters();

   ^

C:\Users\<my-user-name>\Documents\Arduino\libraries\arduino-shutters\src/Shutters.h:75:3: note:   candidate expects 0 arguments, 8 provided

C:\Users\<my-user-name>\Documents\Arduino\libraries\arduino-shutters\src/Shutters.h:39:7: note: constexpr Shutters::Shutters(const Shutters&)

 class Shutters {

       ^

C:\Users\<my-user-name>\Documents\Arduino\libraries\arduino-shutters\src/Shutters.h:39:7: note:   candidate expects 1 argument, 8 provided

C:\Users\<my-user-name>\Documents\Arduino\libraries\arduino-shutters\src/Shutters.h:39:7: note: constexpr Shutters::Shutters(Shutters&&)

C:\Users\<my-user-name>\Documents\Arduino\libraries\arduino-shutters\src/Shutters.h:39:7: note:   candidate expects 1 argument, 8 provided

Using library homie-esp8266 at version 2.0.0 in folder: C:\Users\\Documents\Arduino\libraries\homie-esp8266

gkaradimas commented 5 years ago

Is there any update in the issue? The example still doesn't compile. Do we need an other version of the Shutters library: https://github.com/marvinroger/arduino-shutters ?

mkfrey commented 5 years ago

Is this still an important issue? Should I just fix it?

stritti commented 3 years ago

Fixed by PR #623

luebbe commented 3 years ago

propably not fixed, because the PR never got merged