Skip to content
forked from yan9a/serial

A simple to use C++ header file for Serial port (Com port)

License

Notifications You must be signed in to change notification settings

AhmedRouatbi/serial

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple to use serial port library in C++

Cross-platform Serial port (Com port) C++ library for Windows, Mac and Linux. Just need to include a single header file 'ceSerial.h' to use it.

  • ceSerial.h : the implementation of the serial class library in a single header file
  • test.cpp : a simple console example program
  • test_gui.cpp : a wxWidgets GUI example program using serial port

The explanation and examples can be found at

http://cool-emerald.blogspot.sg/2017/05/serial-port-programming-in-c-with.html

To build and run console example, test.cpp, on Linux

 $ g++ test.cpp -o test -std=c++11

 $ sudo ./test

To build and run console example, test.cpp, on Windows

 g++ test.cpp -o test.exe -std=c++11
 
 .\test.exe

To build and run wxWidgets example, test_gui.cpp, on Linux

 $ g++ test_gui.cpp `wx-config --cxxflags --libs` -o test_gui -std=c++11
 
 $ sudo ./test_gui

About

A simple to use C++ header file for Serial port (Com port)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%