Skip to content

shenfumin/serial

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

serial

Cross-platform C++14 serial port library.

Example

Port p;
p.open(port_name);
p.set(9600, Parity::none, StopBits::two, DataBits::eight);
p.write(0x10);
if (auto c = p.read(100ms)) {
    std::cout << "Got: " << *c << std::endl;
} else {
    std::cout << "Didn't receive anything for 100 milliseconds." << std::endl;
}

Documentation

See serial.hpp.

Dependencies

License

Two-clause BSD license, see COPYING.

About

A cross-platform serial port library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 95.7%
  • CMake 2.3%
  • Python 2.0%