sendStrings method

Future<bool> sendStrings(
  1. List<String> messages
)

Equivalent to Send(params string[] messages) in C#.

Implementation

Future<bool> sendStrings(List<String> messages) async {
  response = '';
  statusResponse = '';
  if (!isConnected) {
    final ok = await open();
    if (!ok) return false;
  }

  final framed = _dataPreparationStrings(stx, messages, etx);
  if (framed == null) return false;
  return _writeAll(framed);
}