Skip to content

DFUServiceDelegate probelm #490

@LucaDonetti

Description

@LucaDonetti

I try to update a firmware with the library and use the same method of your example app:

self.dfuInitiator = DFUServiceInitiator(queue: DispatchQueue(label: "FirmwareUpdate"))
self.dfuInitiator?.delegate = self
self.dfuInitiator?.progressDelegate = self
self.dfuInitiator?.logger = self
self.dfuInitiator?.dataObjectPreparationDelay = 0.4
self.dfuInitiator?.packetReceiptNotificationParameter = 0

The problem is that I set the delegate and the delegateProcess, but they are nil into the DFUServiceSelector.
In DFUServiceInitiator: self.initiator.delegate is not nil, but in DFUServiceSelector: self.initiator.delegate is nil. For this
the callback for the state and the progress not work

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions