0

I'm writing a C++ application (for Windows 7) and I need to send some data through the serial port for an Arduino. I found some code snippets googling, but most of the code it's outdated. Which libraries should I use and where can I found a detailed explanation with examples? Thanks for the help

3
  • 1
    Show your workaround/code first. Commented Jul 19, 2016 at 17:55
  • Welcome to Stack Overflow! Unfortunately, this question, as it is currently posed, will likely be closed as off topic. I recommend reading How to Ask for tips on how to improve the question and bring it on topic. Commented Jul 19, 2016 at 18:07
  • @code0 I searched on the official board/forum first, but most of the code is for Linux OS Commented Jul 20, 2016 at 19:16

1 Answer 1

1

Libserial: https://github.com/crayzeewulf/libserial/

It is an excellent library for serial port communications with C++. You'll find some easy to use examples in the examples folder on the git repo.

However, if the task gets too complicated I would recommend using Arduino's libraries ie. SoftwareSerial to make your task easier.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.