write(_:)
Writes a byte to the external device through the serial connection.
@discardableResult func write(_ byte: UInt8) -> Result<(), Errno>
Parameters
- byte
A UInt8 to be sent to the device.
Returns
Whether the communication succeeds. If not, it returns the specific error.