setupFirmwareUpdate method
- required TransferType txType,
- required int totalSizeBytes,
- int? totalCrc32,
- 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;
}