Writes text data to the port. Returns the number of bytes written.
Future<int> writeText(String data, {Duration? timeout});