Is there a way to upload a host firmware?

Hello,
I want to create a pipeline that build and publish my host firmware.
I look for in the API

But do not find a way to upload automatically the firmware from my pipeline when commit in the main branch (ie an official new release).

Is there a way do to so so I can ensure the firmware was built on the CI/CD platform and not upload manually.

Regards

1 Like

Hey @Laurent,

Welcome to the Blues community! We do not have an API for this today, but this is a great suggestion. I’ve let our cloud team know.

Thanks,
TJ VanToll

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.

Rob

So that’s a no, for now anyway?

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.

Hey all,

Sorry for the late replies here. I’m returning from an event and catching back up.

Yes, you can do this with Notecard Outboard Firmware Update.

When we have an official API for doing this I’ll drop a new message in this thread.

TJ