Reputation: 155
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
Upvotes: 0
Views: 1541
Reputation: 26
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.
Upvotes: 1