getCommand method

  1. @override
BleCommandEnvelope getCommand(
  1. int commandId
)
override

Implementation

@override
BleCommandEnvelope getCommand(int commandId) {
  final args = <dynamic>[sequenceId];
  if (txType != null) {
    args
      ..add(txType!.value)
      ..addAll(ackIds.take(5));
  }

  return BleCommandEnvelope(
    commandType: BleCommand.bulkRead.value,
    commandId: commandId,
    args: args,
  );
}