getCommand method

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

Implementation

@override
BleCommandEnvelope getCommand(int commandId) {
  final args = <dynamic>[txType.value];
  if (destination != null && destination!.isNotEmpty) {
    args.add(destination);
  }

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