Simulated product dispenser
Fork of mbed-cloud-workshop-connect-HTS221 by
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).
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 389 of file fcc_bundle_handler.c.
Generated on Tue Jul 12 2022 19:12:17 by 1.7.2