tinyhttp
Public Member Functions | Static Protected Member Functions | List of all members
tinyhttp::Ticker Class Reference

A Simple Ticker which executes a callback function in defined intervalls. More...

#include <Ticker.h>

Public Member Functions

 Ticker (int cleanupSchedule=60000)
 
void doLoop ()
 please call this method in your loop()
 
int schedule (long repeatMs, void(*callback)(void *), long startMs=UNDEFINED_SCHEDULE, long endMs=UNDEFINED_SCHEDULE, void *ctx=nullptr)
 Schedule and starts the execution of the callback.
 
void stop (int id)
 stops the execution of the callback by setting the end time;
 
void stopAll ()
 stops the execution of the callback by setting the end time;
 

Static Protected Member Functions

static void cleanup (void *)
 

Detailed Description

A Simple Ticker which executes a callback function in defined intervalls.


The documentation for this class was generated from the following file: