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.cpp

17 lines
384 B
C++
Raw Normal View History

#include <SerialCommunicator.h>
#include <HardwareSerial.h>
SerialCommunicator::SerialCommunicator(int baudRate, int timeout, __SIZE_TYPE__ bufferSize) : Communicator(bufferSize)
{
Serial.begin(baudRate);
Serial.setTimeout(timeout);
}
void SerialCommunicator::sendMessage(int *values)
{
}
void SerialCommunicator::sendMessage(char *message)
{
Serial.println(message);
}