Download this file
#ifndef LISTENER_H
#define LISTENER_H

#include "leffakone_timer.h"
#include "Scheduler.h"
#include "state_machine.h"

class Listener: public Task {

  public:
    Listener():
      value(0)
      {};
    bool canRun(uint32_t now);
    void run(uint32_t now);
    inline void set_state_machine(StateMachine * sm) { state_machine = sm; }

  private:
    uint32_t value;
    StateMachine * state_machine;
};
#endif