wjwwood / serial

Cross-platform, Serial Port library written in C++
http://wjwwood.github.com/serial/
MIT License
2.11k stars 1.02k forks source link

add dtr control to Serial constructor #266

Open MaxTheMooshroom opened 2 years ago

MaxTheMooshroom commented 2 years ago

What: Add Data-Terminal-Ready (DTR) control parameter to the Serial constructor.

Why: To set the default in the constructor. The arduino IDE and pyserial lib both provide constructor arguments for setting the default DTR behaviour of a serial object without needing to make external calls to update the properties of a file handle after construction. This is desirable behaviour.

Solves #265

How:

These changes are made to both windows and unix implementations.

If something is not satisfactory, please let me know and I will make adjustments. - Maxine