apache / apache/nuttx-apps

MCUBoot Agent Feature. Add extra headers.

Open
#911 1 comment 0 reactions 1 assignee Claimed by @gustavonihei View on GitHub
Dominant language
C
Stars
465
Forks
779
Avg merge
2d 9h
Merged PRs (30d)
36

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.