setupFirmwareUpdate method

Future<bool> setupFirmwareUpdate({
  1. required TransferType txType,
  2. required int totalSizeBytes,
  3. int? totalCrc32,
  4. String? destination,
})

Implementation

Future<bool> setupFirmwareUpdate({
  required TransferType txType,
  required int totalSizeBytes,
  int? totalCrc32,
  String? destination,
}) async {
  final response = await sendCommand<FirmwareUpdateSetupReply>(
    FirmwareUpdateSetupBleCommandTx(
      txType: txType,
      totalSizeBytes: totalSizeBytes,
      totalCrc32: totalCrc32,
      destination: destination,
    ),
  );
  return response != null && !response.hasErrors;
}