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

Enhancement Request - DFU update using downloaded file #1

Closed
chris-otani opened this issue Jul 22, 2021 · 5 comments
Closed

Enhancement Request - DFU update using downloaded file #1

chris-otani opened this issue Jul 22, 2021 · 5 comments

Comments

@chris-otani
Copy link

Hi, Thank you for maintaining this package and migrating it to null safety. I have successfully integrated it into my project using a zip file in my flutter project just like the example project and it works as expected.

In my app I'd like to be able to get the zip firmware file from an API download rather than a local file so the user will always have access to the newest firmware.

I can use an HTTP request to get the file contents but this package does not appear to have a method to update the firmware in this manner.

Would this be an enhancement that you can add or could you please point me in the right direction of some workaround?

Thank you!

@juliansteenbakker
Copy link
Owner

Hello, it's funny that you ask because i've been wanting to implement the exact same thing for an app i'm developing. Just at the top of my head, isn't it possible to create an async function that will A: download the zipfile from the api and B: fire the NordicDfu.startDfu proces with the just aquired zip file path? I haven't really put any thought into it because i have this functionality planned in a sprint later the next month.

@chris-otani
Copy link
Author

That was my thoughts as well. I started to go down that path but it looks like it would take a few packages and extra permissions from the user to make it happen. I looked at the Nordic Android and IOS API and it looks like there is no method to pass a binary directly. It seems like something they could add easily.

Let me know what you come up with if you implement something in your project.

@rohitsangwan01
Copy link

@juliansteenbakker any progress update regarding this ??

@juliansteenbakker
Copy link
Owner

No not yet. Im gonna see if i can get this back on track anytime soon.

@juliansteenbakker
Copy link
Owner

What you have to do is use a tool like flutter_downloader to download the zip to a public directory, like the downloads folder. You can give that path to this dfu utility in order to use the download.

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

No branches or pull requests

3 participants