The Arm Pelion Device Management code to be used for https://cloud.mbed.com/quick-start

DEPRECATED

This example application is not maintained and not recommended. It uses an old version of Mbed OS, Pelion DM, and Arm toolchain. It doesn't work with Mbed Studio.

Please use: https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-pelion/

Committer:
Andrew Chong
Date:
Fri Jan 25 10:59:23 2019 +0900
Revision:
3:9bdf8c9bf22d
Parent:
1:e0ba512426a7
Added more to ignore from mercurial.

Who changed what in which revision?

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