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

15 lines
372 B
C
Raw Normal View History

#include <Communicator.h>
2022-02-04 14:04:13 +01:00
#include <HardwareSerial.h>
class SerialCommunicator : public Communicator
{
2022-02-04 14:04:13 +01:00
protected:
HardwareSerial &port;
public:
2022-02-04 14:04:13 +01:00
SerialCommunicator(HardwareSerial &port, int baudRate, int timeout, __SIZE_TYPE__ bufferSize);
2022-02-04 09:42:15 +01:00
void sendMessage(int *values, int numberOfValues);
void sendMessage(char *message);
char *receiveMessage();
};