write(_:count:)
Writes a series of bytes to the external device through the serial connection.
@discardableResult func write(_ data: [UInt8], count: Int? = nil) -> Result<(), Errno>
Parameters
Returns
Whether the communication succeeds. If not, it returns the specific error.