getCommand method

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

Implementation

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

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