Workshop example

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers update_default_resources.c Source File

update_default_resources.c

00001 // ----------------------------------------------------------------------------
00002 // Copyright 2016-2017 ARM Ltd.
00003 //
00004 // SPDX-License-Identifier: Apache-2.0
00005 //
00006 // Licensed under the Apache License, Version 2.0 (the "License");
00007 // you may not use this file except in compliance with the License.
00008 // You may obtain a copy of the License at
00009 //
00010 //     http://www.apache.org/licenses/LICENSE-2.0
00011 //
00012 // Unless required by applicable law or agreed to in writing, software
00013 // distributed under the License is distributed on an "AS IS" BASIS,
00014 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015 // See the License for the specific language governing permissions and
00016 // limitations under the License.
00017 // ----------------------------------------------------------------------------
00018  
00019 #ifdef MBED_CLOUD_CLIENT_USER_CONFIG_FILE
00020 #include MBED_CLOUD_CLIENT_USER_CONFIG_FILE
00021 #endif
00022  
00023 #include <stdint.h>
00024  
00025 #ifdef MBED_CLOUD_DEV_UPDATE_ID
00026 const uint8_t arm_uc_vendor_id[16] = { "dev_manufacturer" };
00027 const uint16_t arm_uc_vendor_id_size = sizeof(arm_uc_vendor_id);
00028  
00029 const uint8_t arm_uc_class_id[16]  = { "dev_model_number" };
00030 const uint16_t arm_uc_class_id_size = sizeof(arm_uc_class_id);
00031 #endif
00032  
00033 #ifdef MBED_CLOUD_DEV_UPDATE_CERT
00034 const uint8_t arm_uc_default_fingerprint[32] = { 0 };
00035 const uint16_t arm_uc_default_fingerprint_size =
00036     sizeof(arm_uc_default_fingerprint);
00037  
00038 const uint8_t arm_uc_default_certificate[1] = { 0 };
00039 const uint16_t arm_uc_default_certificate_size =
00040     sizeof(arm_uc_default_certificate);
00041 #endif