17 lines
No EOL
384 B
C++
17 lines
No EOL
384 B
C++
#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);
|
|
} |