Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
mbed_cloud_dev_credentials.c@1:75f7384f9a0b, 2019-01-25 (annotated)
- Committer:
- Juho Eskeli
- Date:
- Fri Jan 25 21:13:29 2019 +0200
- Revision:
- 1:75f7384f9a0b
- Parent:
- 0:2b6d1f2f42fa
Documentation updated
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Juho Eskeli |
0:2b6d1f2f42fa | 1 | /* |
Juho Eskeli |
0:2b6d1f2f42fa | 2 | * Copyright (c) 2017 ARM Limited. All rights reserved. |
Juho Eskeli |
0:2b6d1f2f42fa | 3 | * SPDX-License-Identifier: Apache-2.0 |
Juho Eskeli |
0:2b6d1f2f42fa | 4 | * Licensed under the Apache License, Version 2.0 (the License); you may |
Juho Eskeli |
0:2b6d1f2f42fa | 5 | * not use this file except in compliance with the License. |
Juho Eskeli |
0:2b6d1f2f42fa | 6 | * You may obtain a copy of the License at |
Juho Eskeli |
0:2b6d1f2f42fa | 7 | * |
Juho Eskeli |
0:2b6d1f2f42fa | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
Juho Eskeli |
0:2b6d1f2f42fa | 9 | * |
Juho Eskeli |
0:2b6d1f2f42fa | 10 | * Unless required by applicable law or agreed to in writing, software |
Juho Eskeli |
0:2b6d1f2f42fa | 11 | * distributed under the License is distributed on an AS IS BASIS, WITHOUT |
Juho Eskeli |
0:2b6d1f2f42fa | 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Juho Eskeli |
0:2b6d1f2f42fa | 13 | * See the License for the specific language governing permissions and |
Juho Eskeli |
0:2b6d1f2f42fa | 14 | * limitations under the License. |
Juho Eskeli |
0:2b6d1f2f42fa | 15 | */ |
Juho Eskeli |
0:2b6d1f2f42fa | 16 | #ifndef __MBED_CLOUD_DEV_CREDENTIALS_H__ |
Juho Eskeli |
0:2b6d1f2f42fa | 17 | #define __MBED_CLOUD_DEV_CREDENTIALS_H__ |
Juho Eskeli |
0:2b6d1f2f42fa | 18 | |
Juho Eskeli |
0:2b6d1f2f42fa | 19 | #if MBED_CONF_APP_DEVELOPER_MODE == 1 |
Juho Eskeli |
0:2b6d1f2f42fa | 20 | #error "Replace mbed_cloud_dev_credentials.c with your own developer cert." |
Juho Eskeli |
0:2b6d1f2f42fa | 21 | #endif |
Juho Eskeli |
0:2b6d1f2f42fa | 22 | |
Juho Eskeli |
0:2b6d1f2f42fa | 23 | #include <inttypes.h> |
Juho Eskeli |
0:2b6d1f2f42fa | 24 | |
Juho Eskeli |
0:2b6d1f2f42fa | 25 | const char MBED_CLOUD_DEV_BOOTSTRAP_ENDPOINT_NAME[] = ""; |
Juho Eskeli |
0:2b6d1f2f42fa | 26 | const char MBED_CLOUD_DEV_ACCOUNT_ID[] = ""; |
Juho Eskeli |
0:2b6d1f2f42fa | 27 | const char MBED_CLOUD_DEV_BOOTSTRAP_SERVER_URI[] = ""; |
Juho Eskeli |
0:2b6d1f2f42fa | 28 | |
Juho Eskeli |
0:2b6d1f2f42fa | 29 | const uint8_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE[] = |
Juho Eskeli |
0:2b6d1f2f42fa | 30 | { 0x0 }; |
Juho Eskeli |
0:2b6d1f2f42fa | 31 | |
Juho Eskeli |
0:2b6d1f2f42fa | 32 | const uint8_t MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE[] = |
Juho Eskeli |
0:2b6d1f2f42fa | 33 | { 0x0 }; |
Juho Eskeli |
0:2b6d1f2f42fa | 34 | |
Juho Eskeli |
0:2b6d1f2f42fa | 35 | const uint8_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_PRIVATE_KEY[] = |
Juho Eskeli |
0:2b6d1f2f42fa | 36 | { 0x0 }; |
Juho Eskeli |
0:2b6d1f2f42fa | 37 | |
Juho Eskeli |
0:2b6d1f2f42fa | 38 | const char MBED_CLOUD_DEV_MANUFACTURER[] = "dev_manufacturer"; |
Juho Eskeli |
0:2b6d1f2f42fa | 39 | |
Juho Eskeli |
0:2b6d1f2f42fa | 40 | const char MBED_CLOUD_DEV_MODEL_NUMBER[] = "dev_model_num"; |
Juho Eskeli |
0:2b6d1f2f42fa | 41 | |
Juho Eskeli |
0:2b6d1f2f42fa | 42 | const char MBED_CLOUD_DEV_SERIAL_NUMBER[] = "0"; |
Juho Eskeli |
0:2b6d1f2f42fa | 43 | |
Juho Eskeli |
0:2b6d1f2f42fa | 44 | const char MBED_CLOUD_DEV_DEVICE_TYPE[] = "dev_device_type"; |
Juho Eskeli |
0:2b6d1f2f42fa | 45 | |
Juho Eskeli |
0:2b6d1f2f42fa | 46 | const char MBED_CLOUD_DEV_HARDWARE_VERSION[] = "dev_hardware_version"; |
Juho Eskeli |
0:2b6d1f2f42fa | 47 | |
Juho Eskeli |
0:2b6d1f2f42fa | 48 | const uint32_t MBED_CLOUD_DEV_MEMORY_TOTAL_KB = 0; |
Juho Eskeli |
0:2b6d1f2f42fa | 49 | const uint32_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE_SIZE = sizeof(MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE); |
Juho Eskeli |
0:2b6d1f2f42fa | 50 | const uint32_t MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE_SIZE = sizeof(MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE); |
Juho Eskeli |
0:2b6d1f2f42fa | 51 | const uint32_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_PRIVATE_KEY_SIZE = sizeof(MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_PRIVATE_KEY); |
Juho Eskeli |
0:2b6d1f2f42fa | 52 | |
Juho Eskeli |
0:2b6d1f2f42fa | 53 | #endif //__MBED_CLOUD_DEV_CREDENTIALS_H__ |