MCUBoot Agent Feature. Add extra headers.

Open
#911 1 comment 0 reactions 1 assignee View on GitHub

@gustavonihei is already working on this.

Since Dec 16, 2021.

Assessment

This issue has not been assessed yet.

Description

When downloading images in mcuboot_agent application from a URL with a GET command it would be a good feature to add a function that lets you send board custom headers to the server to indicate board related data.

I am thinking in a OTA Server that serves the firmware image depending in the board ID, Firmware current version, etc...

A function that adds to the webclient_context struct the extra headers could be implement in mcuboot_agent_main.c file in download_firmware_image function like this:

#ifdef CONFIG_MCUBOOT_UPDATE_AGENT_EXTRA_HEADERS
 mcuboot_add_extra_headers(&client_ctx)
#endif

Then mcuboot_add_extra_headers would be defined by the user depending on his concrete server according to its needs...

How do you see this feature?? Could it be a good idea?? @pkarashchenko

Dominant language
C
Stars
465
Forks
782
Avg merge
3d 11h
Merged PRs (30d)
44

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/nuttx-apps

All issues in apache/nuttx-apps

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.