NuMaker Pelion Device Management example

Fork of mbed-os-example-pelion by cc li

Committer:
SHLIU1@OANBE02333.nuvoton.com
Date:
Thu Feb 25 11:51:01 2021 +0800
Revision:
16:75a4830fc40a
Parent:
0:f78ec4a22e67
Support the both V5.X and V6.X for mbed-os

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ccli8 0:f78ec4a22e67 1 // ----------------------------------------------------------------------------
ccli8 0:f78ec4a22e67 2 // Copyright 2016-2017 ARM Ltd.
ccli8 0:f78ec4a22e67 3 //
ccli8 0:f78ec4a22e67 4 // SPDX-License-Identifier: Apache-2.0
ccli8 0:f78ec4a22e67 5 //
ccli8 0:f78ec4a22e67 6 // Licensed under the Apache License, Version 2.0 (the "License");
ccli8 0:f78ec4a22e67 7 // you may not use this file except in compliance with the License.
ccli8 0:f78ec4a22e67 8 // You may obtain a copy of the License at
ccli8 0:f78ec4a22e67 9 //
ccli8 0:f78ec4a22e67 10 // http://www.apache.org/licenses/LICENSE-2.0
ccli8 0:f78ec4a22e67 11 //
ccli8 0:f78ec4a22e67 12 // Unless required by applicable law or agreed to in writing, software
ccli8 0:f78ec4a22e67 13 // distributed under the License is distributed on an "AS IS" BASIS,
ccli8 0:f78ec4a22e67 14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
ccli8 0:f78ec4a22e67 15 // See the License for the specific language governing permissions and
ccli8 0:f78ec4a22e67 16 // limitations under the License.
ccli8 0:f78ec4a22e67 17 // ----------------------------------------------------------------------------
ccli8 0:f78ec4a22e67 18
ccli8 0:f78ec4a22e67 19 #ifdef MBED_CLOUD_CLIENT_USER_CONFIG_FILE
ccli8 0:f78ec4a22e67 20 #include MBED_CLOUD_CLIENT_USER_CONFIG_FILE
ccli8 0:f78ec4a22e67 21 #endif
ccli8 0:f78ec4a22e67 22
ccli8 0:f78ec4a22e67 23 #include <stdint.h>
ccli8 0:f78ec4a22e67 24
ccli8 0:f78ec4a22e67 25 #ifdef MBED_CLOUD_DEV_UPDATE_ID
ccli8 0:f78ec4a22e67 26 const uint8_t arm_uc_vendor_id[16] = { "dev_manufacturer" };
ccli8 0:f78ec4a22e67 27 const uint16_t arm_uc_vendor_id_size = sizeof(arm_uc_vendor_id);
ccli8 0:f78ec4a22e67 28
ccli8 0:f78ec4a22e67 29 const uint8_t arm_uc_class_id[16] = { "dev_model_number" };
ccli8 0:f78ec4a22e67 30 const uint16_t arm_uc_class_id_size = sizeof(arm_uc_class_id);
ccli8 0:f78ec4a22e67 31 #endif
ccli8 0:f78ec4a22e67 32
ccli8 0:f78ec4a22e67 33 #ifdef MBED_CLOUD_DEV_UPDATE_CERT
ccli8 0:f78ec4a22e67 34 const uint8_t arm_uc_default_fingerprint[32] = { 0 };
ccli8 0:f78ec4a22e67 35 const uint16_t arm_uc_default_fingerprint_size =
ccli8 0:f78ec4a22e67 36 sizeof(arm_uc_default_fingerprint);
ccli8 0:f78ec4a22e67 37
ccli8 0:f78ec4a22e67 38 const uint8_t arm_uc_default_certificate[1] = { 0 };
ccli8 0:f78ec4a22e67 39 const uint16_t arm_uc_default_certificate_size =
ccli8 0:f78ec4a22e67 40 sizeof(arm_uc_default_certificate);
ccli8 0:f78ec4a22e67 41 #endif