Mbed Cloud Connect for Ethernet Platforms
Fork of example-Ethernet-mbed-Cloud-connect by
mbed_cloud_dev_credentials.c@12:ca4ab5d7e52b, 2018-06-04 (annotated)
- Committer:
- davwal04@E108444.Emea.Arm.com
- Date:
- Mon Jun 04 17:03:57 2018 +0100
- Branch:
- update-1.3.0
- Revision:
- 12:ca4ab5d7e52b
- Parent:
- 6:2d0e0866f2e7
Fixed SOTP address
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 1 | /* |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 2 | * Copyright (c) 2017 ARM Limited. All rights reserved. |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 3 | * SPDX-License-Identifier: Apache-2.0 |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 4 | * Licensed under the Apache License, Version 2.0 (the License); you may |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 5 | * not use this file except in compliance with the License. |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 6 | * You may obtain a copy of the License at |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 7 | * |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 9 | * |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 10 | * Unless required by applicable law or agreed to in writing, software |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 11 | * distributed under the License is distributed on an AS IS BASIS, WITHOUT |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 13 | * See the License for the specific language governing permissions and |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 14 | * limitations under the License. |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 15 | */ |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 16 | #ifndef __MBED_CLOUD_DEV_CREDENTIALS_H__ |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 17 | #define __MBED_CLOUD_DEV_CREDENTIALS_H__ |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 18 | |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 19 | #if MBED_CONF_APP_DEVELOPER_MODE == 1 |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 20 | #error "Replace mbed_cloud_dev_credentials.c with your own developer cert." |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 21 | #endif |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 22 | |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 23 | #include <inttypes.h> |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 24 | |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 25 | const char MBED_CLOUD_DEV_BOOTSTRAP_ENDPOINT_NAME[] = ""; |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 26 | const char MBED_CLOUD_DEV_ACCOUNT_ID[] = ""; |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 27 | const char MBED_CLOUD_DEV_BOOTSTRAP_SERVER_URI[] = ""; |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 28 | |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 29 | const uint8_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE[] = |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 30 | { 0x0 }; |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 31 | |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 32 | const uint8_t MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE[] = |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 33 | { 0x0 }; |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 34 | |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 35 | const uint8_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_PRIVATE_KEY[] = |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 36 | { 0x0 }; |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 37 | |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 38 | const char MBED_CLOUD_DEV_MANUFACTURER[] = "dev_manufacturer"; |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 39 | |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 40 | const char MBED_CLOUD_DEV_MODEL_NUMBER[] = "dev_model_num"; |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 41 | |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 42 | const char MBED_CLOUD_DEV_SERIAL_NUMBER[] = "0"; |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 43 | |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 44 | const char MBED_CLOUD_DEV_DEVICE_TYPE[] = "dev_device_type"; |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 45 | |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 46 | const char MBED_CLOUD_DEV_HARDWARE_VERSION[] = "dev_hardware_version"; |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 47 | |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 48 | const uint32_t MBED_CLOUD_DEV_MEMORY_TOTAL_KB = 0; |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 49 | const uint32_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE_SIZE = sizeof(MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE); |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 50 | const uint32_t MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE_SIZE = sizeof(MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE); |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 51 | const uint32_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_PRIVATE_KEY_SIZE = sizeof(MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_PRIVATE_KEY); |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 52 | |
davwal04@E108444.Emea.Arm.com | 6:2d0e0866f2e7 | 53 | #endif //__MBED_CLOUD_DEV_CREDENTIALS_H__ |