Download this file
#ifndef PROTOCOL_H
#define PROTOCOL_H

#include 
#include 
#include "heater_controller_slave.h"
#include "relay.h"
#include "temperature.h"
#include "speaker.h"
#include "current.h"

class Protocol {
  public:
    Protocol(Speaker* speaker);

    void handle(uint8_t * buffer, uint8_t buffer_len);
    void got_ack();

  protected:
    void status();
    void error(uint8_t faulty_command);

  private:
    Speaker* speaker;
    Relay relay;
    Temperature temperature;
    Current current;
};
#endif
// vim:ft=arduino