josepgomes / EzSerial

A simple serial library to send and receive data to any device.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EzSerial

A simple serial library to send and receive data.

How to install

Copy ezserial.h and ezserial.cpp yo your project's folder and include "ezserial.h".

How to use

//File Talker.cpp
EzSerial serial("/dev/ttyACM0", 57600);
serial.Send("Hello World!\n");
//File Listener.cpp
EzSerial serial("/dev/ttyACM0", 57600);
std::string received = serial.Receive();
if(received.length() > 0){
  std::cout << received;
}

About

A simple serial library to send and receive data to any device.

License:GNU General Public License v3.0


Languages

Language:C++ 100.0%