setCustomUuidsForLegacyDfu

open fun setCustomUuidsForLegacyDfu(@Nullable dfuServiceUuid: UUID, @Nullable dfuControlPointUuid: UUID, @Nullable dfuPacketUuid: UUID, @Nullable dfuVersionUuid: UUID): DfuServiceInitiator

Sets custom UUIDs for Legacy DFU and Legacy Buttonless DFU. Use this method if your DFU implementation uses different UUID for at least one of the given UUIDs. Parameter set to null will reset the UUID to the default value.

Return

the builder

Parameters

dfuServiceUuid

custom Legacy DFU service UUID or null, if default is to be used

dfuControlPointUuid

custom Legacy DFU Control Point characteristic UUID or null,if default is to be used

dfuPacketUuid

custom Legacy DFU Packet characteristic UUID or null, if default isto be used

dfuVersionUuid

custom Legacy DFU Version characteristic UUID or null,if default is to be used (SDK 7.0 - 11.0 only, set null for earlier SDKs)