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
  • Ok, thank you for the tip. It seems to be the better solution. I have taken a look to the content provider implementation. For now, it is a little bit to complex for me and i have not much time at the moment. But for a future release of the app, this is an option. Or do you have any sample code how this can be done (you mentioned libs the make the implentation easy). I'm not so firm with java. The app is written with Qt (Qml, C++). The DFU Lib is called via JNI.

Reply
  • Ok, thank you for the tip. It seems to be the better solution. I have taken a look to the content provider implementation. For now, it is a little bit to complex for me and i have not much time at the moment. But for a future release of the app, this is an option. Or do you have any sample code how this can be done (you mentioned libs the make the implentation easy). I'm not so firm with java. The app is written with Qt (Qml, C++). The DFU Lib is called via JNI.

Children
No Data
Related