This repository has been archived on 2023-12-22. You can view files and clone it, but cannot push or open issues or pull requests.
old-monorepo/Devices/Control/Firmware/lib/Communicator/SerialCommunicator.h

14 lines
372 B
C++

#include <Communicator.h>
#include <HardwareSerial.h>
class SerialCommunicator : public Communicator
{
protected:
HardwareSerial &port;
public:
SerialCommunicator(HardwareSerial &port, int baudRate, int timeout, __SIZE_TYPE__ bufferSize);
void sendMessage(int *values, int numberOfValues);
void sendMessage(char *message);
char *receiveMessage();
};