Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FXAS21002 FXOS8700Q
fcc_bundle_handler.h File Reference
Defines for the bundles sent between the FCU and FCC This layer handles a device configuration bundle created by factory configurator utility (FCU). More...
Go to the source code of this file.
Functions | |
fcc_status_e | fcc_bundle_handler (const uint8_t *encoded_bundle, size_t encoded_bundle_size, uint8_t **bundle_response_out, size_t *bundle_response_size_out) |
Decodes and processes an inbound device configuration bundle created by FCU. |
Detailed Description
Defines for the bundles sent between the FCU and FCC This layer handles a device configuration bundle created by factory configurator utility (FCU).
factory configurator client bundle handler APIs.
Definition in file fcc_bundle_handler.h.
Function Documentation
fcc_status_e fcc_bundle_handler | ( | const uint8_t * | encoded_bundle, |
size_t | encoded_bundle_size, | ||
uint8_t ** | bundle_response_out, | ||
size_t * | bundle_response_size_out | ||
) |
Decodes and processes an inbound device configuration bundle created by FCU.
Also creates an outbound bundle that should be sent to FCU. The function assumes that the bundle includes four groups represented as cbor maps. The names of the groups are `SchemeVersion`, `Keys`, `Certificates` and `ConfigParams`. Each group contains a list of items, and for each item, there are a number of relevant parameters.
- Parameters:
-
encoded_bundle The encoded FCU bundle that is written into a secure storage. encoded_blob_size The encoded FCU bundle size in bytes. bundle_response_out The encoded outbound bundle. It may contain data such as CSR and different types of key schemes. The response associates a descriptive error in case of a fault. Will be NULL if response not created successfully. bundle_response_size_out The encoded outbound bundle size in bytes.
- Returns:
- FCC_STATUS_SUCCESS in case of success or one of the `fcc_status_e` errors otherwise.
Definition at line 388 of file fcc_bundle_handler.c.
Generated on Tue Jul 12 2022 20:21:04 by
