Download this file
#ifndef LISTENER_H
#define LISTENER_H

#include "heater_controller_slave.h"
#include "Scheduler.h"
#include "protocol.h"
#include 

class Listener: public Task {
  public:
    Listener(Protocol * protocol):
      protocol(protocol)
      {};

    bool canRun(uint32_t now);
    void run(uint32_t now);

  private:
    Protocol * protocol;
    uint8_t recv_buffer[BUFFER_LEN];
    uint8_t recv_buffer_len;
};

#endif
// vim:ft=arduino