transmissionOfStatus method

List<int> transmissionOfStatus({
  1. int n = 1,
})

Request transmission of printer status.

Implementation

List<int> transmissionOfStatus({int n = 1}) {
  List<int> bytes = [];
  if (n >= 0 && n <= 255) {
    bytes += Uint8List.fromList(
      List.from(cTransmissionOfStatus.codeUnits)..add(n),
    );
  }
  return bytes;
}