Simulated product dispenser

Dependencies:   HTS221

Fork of mbed-cloud-workshop-connect-HTS221 by Jim Carver

Embed: (wiki syntax)

« Back to documentation index

fcc_bundle_handler.h File Reference

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_bundleThe encoded FCU bundle that is written into a secure storage.
encoded_blob_sizeThe encoded FCU bundle size in bytes.
bundle_response_outThe 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_outThe 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.