• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Smart Home Ticker Issue

Q&A Forum › Category: Home Automation › Smart Home Ticker Issue
0 Vote Up Vote Down
Matt asked 3 years ago

Hi, Working on the Smart Home Ebook, Module 5.2 and am unable to compile due to the following error:
I have Ticker 4.4.0 installed and get the compiler error
no matching function for call to ‘Ticker::Ticker()’
Any help would be greatly appreciated
“error: ‘class Ticker’ has no member named ‘once'”
Same for “detach”

7 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi Matt.
 
Try updating your ESP8266 boards version. Go to Tools > Boards > Boards Manager, search for ESP8266, and updated to the latest version 3.0.2.
Then, restart your Arduino IDE and try to compile the code again.
 
Let me know if this solves your issue.
 
Regards,
Sara

0 Vote Up Vote Down
Matt answered 3 years ago

Hi Sara,
Thanks for getting back to me so quickly. I did as you suggested and found I was already running 3.0.2, so I backed up to 3.0.1, restarted IDE , and the code complied.
Then I went back and upgraded to 3.0.2 again, restarted IDE and coded compiled and uploaded successfully .
Looks to me as though my original installation of 3.0.2 was flawed.
Thanks so much for your help, now back to learning.
Cheers,
Matt

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Great!
I’m glad the issue is solved.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

0 Vote Up Vote Down
Emmanuel Schmidt answered 1 year ago

I’m just interesting with mqtt and grab out from my library Smart_Home_Raspberry_Pi_ESP32_ESP8266 (V1_3).
As seen, after some other library installed as AsyncMQTTclient, which is now called AsyncMQTT_Generic, I’ve got issue with Ticker. See history here after.
I’ve dowloaded it directly with library toolbar (IDE 2.3.x) and the last version is 4.4.
Compilation has been down, and returns no error (except mine at the begining). But regarding console, I’ve seen that Ticker v1.0 has been chosen by the system instead of the last one.
Whatever I decide to remove the oldest (hopefully located in the original folder of Arduino’s Library, not my current one).
Then new compilation returns error of function mismatch.
So I grab information on library keyword and can confirm functions are totally different.
In fact it exists two different library the original written by Ivan Grokhtokov <ivan@esp8266.com> (library.properties) and the last one from Stephan Staub (find with Github link) which is probably richest but with completely different keywords.
I decided to downgrade v4.4 to 3.2 (the oldest purposed) but it doesn’t work neither.
Finally I re-install the 1.0 version (grab from trash)… but not satisfied with that.

0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Hi.
If the library is choosing the Ticker v1.0 is because that’s the one compatible.
You should use that and not the other one.
Regards,
Sara

0 Vote Up Vote Down
Emmanuel Schmidt answered 1 year ago

That’s what i did. I’m not able to modified the code to emplement “new” Ticker yet.
Thanks.

0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.