ISerialPortChangeParity Method
Stores current value of parity for future check. Descendant communicator can implement change of serial port parity for its channel.
Namespace: OddPrg.CommunicationAssembly: OddPrg.Communication (in OddPrg.Communication.dll) Version: 2.0.0.2 (2.0.0.2)
bool ChangeParity(
string parity,
CancellationToken cancelToken
)
- parity String
- New value of parity. It can be one from values None, Odd, Even, Mark, Space.
- cancelToken CancellationToken
BooleanReturns true if parity was changed, otherwise false.