Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DFUServiceDelegate probelm #490

Open
LucaDonetti opened this issue Sep 30, 2022 · 2 comments
Open

DFUServiceDelegate probelm #490

LucaDonetti opened this issue Sep 30, 2022 · 2 comments
Labels

Comments

@LucaDonetti
Copy link

LucaDonetti commented Sep 30, 2022

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

@philips77
Copy link
Member

How and why do you get access to DFUServiceSelector? The selector is started with the initiator instance so all the fields should be set as well, unless you set them back to nil of the self from your code was disposed.

@philips77
Copy link
Member

Also, sorry for answering so late. I am busy with lots of projects and have missed your question. Did you manage to solve the issue? Can we close it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants