ISerialPortChangeStopBits Method

Stores current value of stop bits for future check. Descendant communicator can implement change of serial port stop bits for its channel.

Definition

Namespace: OddPrg.Communication
Assembly: OddPrg.Communication (in OddPrg.Communication.dll) Version: 2.0.0.2 (2.0.0.2)
C#
bool ChangeStopBits(
	string stopBits,
	CancellationToken cancelToken
)

Parameters

stopBits  String
New value of stopbits. It can be one of the values None, One, Two, OnePointFive
cancelToken  CancellationToken

Return Value

Boolean
Returns true if stop bits was changed, otherwise false.

See Also