-
Notifications
You must be signed in to change notification settings - Fork 75
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
Buttonless DFU not working on iOS #3
Comments
Did NRFConnect worked? |
Yeah, that works on iOS. Is there something I need to add with iOS as opposed to Android? This code works with Android and then with iOS I get a PlatformException thrown.
|
Can you paste more log that console print? |
|
Sorry, I can't find the problem by this log message, can you try to use IOS-Pods-DFU-Library? |
I got the iOS DFU library to work with this code, nRF Toolbox Repo. I had to change: @objc public var alternativeAdvertisingNameEnabled from true to false. I tried changing that property in your plugin but it still didn't work. Are you calling the DFU initiator differently? They have this for their DFU function: func performDFU() {
self.disableOtherButtons()
progress.isHidden = false
progressLabel.text = nil
progressLabel.isHidden = false
uploadStatus.isHidden = false
uploadButton.isEnabled = false
self.registerObservers()
// To start the DFU operation the DFUServiceInitiator must be used
let initiator = DFUServiceInitiator(centralManager: centralManager!, target: selectedPeripheral!)
initiator.forceDfu = UserDefaults.standard.bool(forKey: "dfu_force_dfu")
initiator.packetReceiptNotificationParameter = UInt16(UserDefaults.standard.integer(forKey: "dfu_number_of_packets"))
initiator.logger = self
initiator.delegate = self
initiator.progressDelegate = self
initiator.enableUnsafeExperimentalButtonlessServiceInSecureDfu = true
dfuController = initiator.with(firmware: selectedFirmware!).start()
uploadButton.setTitle("Cancel", for: UIControlState())
uploadButton.isEnabled = true
} Have you accomplished buttonless DFU with this plugin yet? |
Yes, we use |
It's working today with a different unit. So I'm not sure what was all wrong. |
I am unable to get DFU to work with iOS. I believe it has to deal with the device id being different in iOS with Flutter Blue. Since iOS creates their own UUID instead of using the MAC address like Android.
The text was updated successfully, but these errors were encountered: