thehookup / Motorized_MQTT_Blinds

Motorized_MQTT_Blinds
299 stars 75 forks source link

exit status 1 no matching function for call to 'SimpleTimer::setInterval(int, void (&)())' #56

Open stanboyd opened 3 years ago

stanboyd commented 3 years ago

When compiling code I get this error above. The line of code that is highlighted is this one. timer.setInterval(90000, checkIn);

This is in the very bottom of the code, not sure why it's hanging all libraries have been used.

Stan

JohnnyAtari commented 3 years ago

Stan,

you'll eceive this error if you're using the SimpleTimer that is installed from the Arduino libraries manager. It installs kiryanenko's version by default - https://github.com/kiryanenko/SimpleTimer

If you install schinken's version, the code shoudl compile without errors - https://github.com/schinken/SimpleTimer

Hope this was of some help,

Johnny.