GithubHelp home page GithubHelp logo

thejusp / cpplinuxserial Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gbmhunter/cpplinuxserial

0.0 2.0 0.0 54 KB

Serial port library written in C++.

CMake 6.43% C++ 37.01% Shell 56.56%

cpplinuxserial's Introduction

CppLinuxSerial

Serial port library written in C++

https://travis-ci.org/mbedded-ninja/CppLinuxSerial.svg?branch=master

Description

Library for communicating with COM ports on a Linux system.

Uses fstream to the file I/O.

Installation

  1. Clone the git repo onto your local storage.
  2. Run make all to compile and run unit tests. Do not worry about error messages being printed when unit tests are run, the unit tests are designed to specifically cause errors to test the response.
  3. To include serial-port-cpp into your embedded (or otherwise) firmware/software project, copy the repo into your project folder (or other suitable place), include the file "/api/SerialPortApi.hpp" from your C++ code, and make sure to compile all the files within "/src/".

Dependencies

The following table lists all of the libraries dependencies.

Dependency Comments
C++14 C++14 used for strongly typed enums, std::chrono and literals.
<stdio.h> snprintf()
stty Used in unit tests to verify the serial port is configured correctly.

Issues

See GitHub Issues.

Usage

Nothing here yet...

FAQ

  1. My code stalls when calling functions like SerialPort::Read(). This is probably because the library is set up to do a blocking read, and not enough characters have been received to allow SerialPort::Read() to return. Use SerialPort::SetNumCharsToWait() to determine how many characters to wait for before returning (set to 0 for non-blocking mode).

Changelog

See CHANGELOG.md.

cpplinuxserial's People

Contributors

gbmhunter avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.