The current demo works really well, but it is rather painful to reuse.
My understanding is that dfu.js and dfuse.js were thought as an easily-reusable library, and that dfu-util.js is responsible for hooking up the library to the demo HTML.
The problem is, dfu-util.js still does some heavy lifting : for example, see the connect function which tries to figure out if a given device is DfuSe-compliant or not. Re-using this code currently means duplicating this function.
It would be very useful to have a minimal UI-less demo to make sure reusing this library is easy.
The current demo works really well, but it is rather painful to reuse.
My understanding is that
dfu.jsanddfuse.jswere thought as an easily-reusable library, and thatdfu-util.jsis responsible for hooking up the library to the demo HTML.The problem is,
dfu-util.jsstill does some heavy lifting : for example, see the connect function which tries to figure out if a given device is DfuSe-compliant or not. Re-using this code currently means duplicating this function.It would be very useful to have a minimal UI-less demo to make sure reusing this library is easy.