setScope

open fun setScope(scope: Int): DfuServiceInitiator

This method allows to narrow the update to selected parts from the ZIP, for example to allow only application update from a ZIP file that has SD+BL+App. System components scope include the Softdevice and/or the Bootloader (they can't be separated as they are packed in a single bin file and the library does not know whether it contains only the softdevice, the bootloader or both) Application scope includes the application only.

Return

the builder

Parameters

scope

the update scope, one of SCOPE_SYSTEM_COMPONENTS or SCOPE_APPLICATION.