setInitFile

open fun setInitFile(@NonNull initFileUri: Uri): DfuServiceInitiator

Deprecated

Sets the URI of the Init file. The init file for DFU Bootloader version pre-0.5 (SDK 4.3, 6.0, 6.1) contains only the CRC-16 of the firmware. Bootloader version 0.5 or newer requires the Extended Init Packet.

Return

the builder

Parameters

initFileUri

the URI of the init file


open fun setInitFile(@Nullable initFilePath: String): DfuServiceInitiator

Deprecated

Sets the path to the Init file. The init file for DFU Bootloader version pre-0.5 (SDK 4.3, 6.0, 6.1) contains only the CRC-16 of the firmware. Bootloader version 0.5 or newer requires the Extended Init Packet.

Return

the builder

Parameters

initFilePath

the path to the init file


open fun setInitFile(@RawRes initFileResId: Int): DfuServiceInitiator

Deprecated

Sets the resource ID of the Init file. The init file for DFU Bootloader version pre-0.5 (SDK 4.3, 6.0, 6.1) contains only the CRC-16 of the firmware. Bootloader version 0.5 or newer requires the Extended Init Packet.

Return

the builder

Parameters

initFileResId

the resource ID of the init file


open fun setInitFile(@Nullable initFileUri: Uri, @Nullable initFilePath: String): DfuServiceInitiator

Deprecated

Sets the URI or path to the Init file. The init file for DFU Bootloader version pre-0.5 (SDK 4.3, 6.0, 6.1) contains only the CRC-16 of the firmware. Bootloader version 0.5 or newer requires the Extended Init Packet. If the URI and path are not null the URI will be used.

Return

the builder

Parameters

initFileUri

the URI of the init file

initFilePath

the path of the init file