Reputation: 91
My arduino is communicating with a simulator that is running on a PC. I would like to make a small API between the two.
My entire code is in C++. I would like to add this communication pattern to have a real time communication. Can you give some clue how I should proceed?
Thank you for your help
Upvotes: 0
Views: 1077
Reputation: 2434
If the aruduino connects as a virtual serial port, you should be able to communicate by opening the serial port object as a file. Under Linux, that would be /dev/ttyUSBX
or something like that.
Upvotes: 1