base-station/Firmware/lib/StreamCommunicator/StreamCommunicator.h

18 lines
452 B
C
Raw Normal View History

2022-04-09 20:07:19 +02:00
#include "Stream.h"
#include "Communicator.h"
2022-04-09 20:07:19 +02:00
#ifndef _STREAM_COMMUNICATOR_INCLUDED_
#define _STREAM_COMMUNICATOR_INCLUDED_
class StreamCommunicator: public Communicator
2022-04-09 20:07:19 +02:00
{
protected:
Stream &stream;
public:
StreamCommunicator(Stream &s_out, __SIZE_TYPE__ bufferSize);
void sendMessage(int *values, __SIZE_TYPE__ numberOfValues) override;
void sendMessage(const char message[]) override;
char *receiveMessage() override;
2022-04-09 20:07:19 +02:00
};
#endif