A timer to announce the vehicle for a specific timer with a specific delay in between. More...
#include <announcement_timer.h>
Public Member Functions | |
| AnnouncementTimer (std::chrono::seconds delay, std::chrono::seconds interval, uint8_t count) | |
| Constructor. More... | |
| AnnouncementTimer (const AnnouncementTimer &)=delete | |
| AnnouncementTimer & | operator= (const AnnouncementTimer &)=delete |
| void | Start (std::function< void()> &&callback) |
| (Re)start the timer to tick More... | |
A timer to announce the vehicle for a specific timer with a specific delay in between.
| DoipLib::AnnouncementTimer::AnnouncementTimer | ( | std::chrono::seconds | delay, |
| std::chrono::seconds | interval, | ||
| uint8_t | count | ||
| ) |
Constructor.
| delay | Delay in seconds before starting the announcement |
| interval | Interval in seconds between each announcement |
| count | Number of annoucement broadcasting iterations |
| void DoipLib::AnnouncementTimer::Start | ( | std::function< void()> && | callback | ) |
(Re)start the timer to tick
| callback | Delegate to be invoked on each timer tick |