itas109 / CSerialPort

CSerialPort - lightweight cross-platform serial port library for C++/C/C#/Java/Python/Node.js/Electron
https://blog.csdn.net/itas109/article/details/84282860
Other
710 stars 337 forks source link

Added dtr/sdr management #70

Open FalsinSoft opened 1 year ago

FalsinSoft commented 1 year ago

Hi Since was not implemented I added the dtr/sdr management for both Windows and Linux Thank you for your library

FalsinSoft commented 1 year ago

Sorry, just noted I made a mistake in wrote commit message. It's rts instead of sdr

FalsinSoft commented 1 year ago

Hi, are you interested in this patch? If not just tell me and I'll close it...

itas109 commented 1 year ago

Thank you very much for your patch. I don't have a hardware device to test it. And There is a corresponding relationship between flowControl and dtr/rts. So I need some time to study it.

FalsinSoft commented 1 year ago

Hi I tested this patch on both Windows and Linux and seems to work as expected. In particular this patch is needed if you want to use your library to communicate with Arduino that require dtr to be set to work.