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 (c) 2018 ARM Limited. All rights reserved.
Andrew Chong 0:fdc18ffe96a4 3 * SPDX-License-Identifier: Apache-2.0
Andrew Chong 0:fdc18ffe96a4 4 * Licensed under the Apache License, Version 2.0 (the License); you may
Andrew Chong 0:fdc18ffe96a4 5 * not use this file except in compliance with the License.
Andrew Chong 0:fdc18ffe96a4 6 * You may obtain a copy of the License at
Andrew Chong 0:fdc18ffe96a4 7 *
Andrew Chong 0:fdc18ffe96a4 8 * http://www.apache.org/licenses/LICENSE-2.0
Andrew Chong 0:fdc18ffe96a4 9 *
Andrew Chong 0:fdc18ffe96a4 10 * Unless required by applicable law or agreed to in writing, software
Andrew Chong 0:fdc18ffe96a4 11 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
Andrew Chong 0:fdc18ffe96a4 12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Andrew Chong 0:fdc18ffe96a4 13 * See the License for the specific language governing permissions and
Andrew Chong 0:fdc18ffe96a4 14 * limitations under the License.
Andrew Chong 0:fdc18ffe96a4 15 */
Andrew Chong 0:fdc18ffe96a4 16 #ifndef __MBED_CLOUD_DEV_CREDENTIALS_H__
Andrew Chong 0:fdc18ffe96a4 17 #define __MBED_CLOUD_DEV_CREDENTIALS_H__
Andrew Chong 0:fdc18ffe96a4 18
Andrew Chong 0:fdc18ffe96a4 19 #if MBED_CONF_APP_DEVELOPER_MODE == 1
Andrew Chong 0:fdc18ffe96a4 20 #error "Replace mbed_cloud_dev_credentials.c with your own developer cert."
Andrew Chong 0:fdc18ffe96a4 21 #endif
Andrew Chong 0:fdc18ffe96a4 22
Andrew Chong 0:fdc18ffe96a4 23 #include <inttypes.h>
Andrew Chong 0:fdc18ffe96a4 24
Andrew Chong 0:fdc18ffe96a4 25 const char MBED_CLOUD_DEV_BOOTSTRAP_ENDPOINT_NAME[] = "";
Andrew Chong 0:fdc18ffe96a4 26 const char MBED_CLOUD_DEV_ACCOUNT_ID[] = "";
Andrew Chong 0:fdc18ffe96a4 27 const char MBED_CLOUD_DEV_BOOTSTRAP_SERVER_URI[] = "";
Andrew Chong 0:fdc18ffe96a4 28
Andrew Chong 0:fdc18ffe96a4 29 const uint8_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE[] =
Andrew Chong 0:fdc18ffe96a4 30 { 0x0 };
Andrew Chong 0:fdc18ffe96a4 31
Andrew Chong 0:fdc18ffe96a4 32 const uint8_t MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE[] =
Andrew Chong 0:fdc18ffe96a4 33 { 0x0 };
Andrew Chong 0:fdc18ffe96a4 34
Andrew Chong 0:fdc18ffe96a4 35 const uint8_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_PRIVATE_KEY[] =
Andrew Chong 0:fdc18ffe96a4 36 { 0x0 };
Andrew Chong 0:fdc18ffe96a4 37
Andrew Chong 0:fdc18ffe96a4 38 const char MBED_CLOUD_DEV_MANUFACTURER[] = "dev_manufacturer";
Andrew Chong 0:fdc18ffe96a4 39
Andrew Chong 0:fdc18ffe96a4 40 const char MBED_CLOUD_DEV_MODEL_NUMBER[] = "dev_model_num";
Andrew Chong 0:fdc18ffe96a4 41
Andrew Chong 0:fdc18ffe96a4 42 const char MBED_CLOUD_DEV_SERIAL_NUMBER[] = "0";
Andrew Chong 0:fdc18ffe96a4 43
Andrew Chong 0:fdc18ffe96a4 44 const char MBED_CLOUD_DEV_DEVICE_TYPE[] = "dev_device_type";
Andrew Chong 0:fdc18ffe96a4 45
Andrew Chong 0:fdc18ffe96a4 46 const char MBED_CLOUD_DEV_HARDWARE_VERSION[] = "dev_hardware_version";
Andrew Chong 0:fdc18ffe96a4 47
Andrew Chong 0:fdc18ffe96a4 48 const uint32_t MBED_CLOUD_DEV_MEMORY_TOTAL_KB = 0;
Andrew Chong 0:fdc18ffe96a4 49 const uint32_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE_SIZE = sizeof(MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE);
Andrew Chong 0:fdc18ffe96a4 50 const uint32_t MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE_SIZE = sizeof(MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE);
Andrew Chong 0:fdc18ffe96a4 51 const uint32_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_PRIVATE_KEY_SIZE = sizeof(MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_PRIVATE_KEY);
Andrew Chong 0:fdc18ffe96a4 52
Andrew Chong 0:fdc18ffe96a4 53 #endif //__MBED_CLOUD_DEV_CREDENTIALS_H__