Instance Method

setSerialParameters(_:dataBits:parity:stopBits:)

Changes the parameters of the serial connection.

Declaration

func setSerialParameters(_ speed: UInt32, dataBits nBits: UInt8, parity: BluetoothRFCOMMParityType, stopBits bitStop: UInt8) -> IOReturn

Parameters

speed

the baudrate.

nBits

number of data bits.

parity

the type of parity can be NoParity, OddParity, EvenParity or MaxParity.

bitStop

number of stop bits.

Return Value

An error code value. 0 if successful.