I was going to ask something similar although quite a bit more elementary. Is it possible to upload the code for say, the Swan, remotely? If I install a system in the field, can I update the program from Notehub?
Tom
Yes it is also a question…
Is there a way to upgrade host firmware from the API.
Because update them from the NoteHub website is not very simple and could be easier from our own platform (less errors as we can dirrectly select the IoT device we want instead of the Blues Notecard…)
Do you have any calendar to allow these two features (upload and upgrade host firmware from API)?
Using the Notehub APIs you can look up available host firmware options, view the status of current DFU actions, view the history of DFU actions, and initiate a host or Notecard DFU. However that last one requires the firmware binary to have already been uploaded to Notehub (that’s the API that is effectively “missing” from the story).
Look up the DFU-related APIs under Project API for more info on these other features.
OK so I used web requests instead of DFU related API.
I only need to login on https://notehub.io/auth/self-service/login with user/password and retrieve the cookies to call the url “settings/firmware/host/new” of my Notehub project.
It works but is clearly more fragile than using the API. Let me know if there is a better way to do it.