This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Extend the DFU library

Hi, in want to extend the DFU library (Android and iOS) with a function similar to setBinOrHex(). But instead of a filename, i want to give a byte array with the init packet and a 2nd byte array with the application, bootloader and/or softdevice (or 3 byte arrays for each part of code). An other way might by to provide the ZIP file as a byte array. What is the best way or where is the best place to insert such a function. Thanks!

Parents
  • Hi! Isn't it easier for you to just save the files in the temp folder (no permission required) and provide path to those files? You may do what you want, but you'd have to override the github.com/.../DfuBaseService.java method in your project and read the data on your own. Any later changes/bug fixes to the lib that we provide would have to be manually maintained by you and we highly discourage you to do so.

Reply
  • Hi! Isn't it easier for you to just save the files in the temp folder (no permission required) and provide path to those files? You may do what you want, but you'd have to override the github.com/.../DfuBaseService.java method in your project and read the data on your own. Any later changes/bug fixes to the lib that we provide would have to be manually maintained by you and we highly discourage you to do so.

Children
No Data