Simple Mbed Cloud client application for NuMaker-PFM-M487 and NuMaker-PFM-NUC472 over Ethernet.
This application contains the example codes to:
1) Connect PFM-M487/PFM-NUC472 boards to Pelion
2) Enable Firmware update
For storage, PFM-M487/PFM-NUC472 support both SPI interface SD and built-in SD bus SD.
For connectivity, PFM-M487/PFM-NUC472 support Ethernet (on-board) by default.
This example supports Ethernet and built-in SD by default.
mbed_cloud_dev_credentials.c@15:867695969724, 2018-12-05 (annotated)
- Committer:
- ccli8
- Date:
- Wed Dec 05 18:21:52 2018 +0800
- Revision:
- 15:867695969724
- Parent:
- 7:6aee86899520
Update NuMaker-mbed-SD-driver.lib
Fix user buffer may not be SD DMA-compatible
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ccli8 |
7:6aee86899520 | 1 | /* |
ccli8 |
7:6aee86899520 | 2 | * Copyright (c) 2017 ARM Limited. All rights reserved. |
ccli8 |
7:6aee86899520 | 3 | * SPDX-License-Identifier: Apache-2.0 |
ccli8 |
7:6aee86899520 | 4 | * Licensed under the Apache License, Version 2.0 (the License); you may |
ccli8 |
7:6aee86899520 | 5 | * not use this file except in compliance with the License. |
ccli8 |
7:6aee86899520 | 6 | * You may obtain a copy of the License at |
ccli8 |
7:6aee86899520 | 7 | * |
ccli8 |
7:6aee86899520 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
ccli8 |
7:6aee86899520 | 9 | * |
ccli8 |
7:6aee86899520 | 10 | * Unless required by applicable law or agreed to in writing, software |
ccli8 |
7:6aee86899520 | 11 | * distributed under the License is distributed on an AS IS BASIS, WITHOUT |
ccli8 |
7:6aee86899520 | 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
ccli8 |
7:6aee86899520 | 13 | * See the License for the specific language governing permissions and |
ccli8 |
7:6aee86899520 | 14 | * limitations under the License. |
ccli8 |
7:6aee86899520 | 15 | */ |
ccli8 |
7:6aee86899520 | 16 | #ifndef __MBED_CLOUD_DEV_CREDENTIALS_H__ |
ccli8 |
7:6aee86899520 | 17 | #define __MBED_CLOUD_DEV_CREDENTIALS_H__ |
ccli8 |
7:6aee86899520 | 18 | |
ccli8 |
7:6aee86899520 | 19 | #if MBED_CONF_APP_DEVELOPER_MODE == 1 |
ccli8 |
7:6aee86899520 | 20 | #error "Replace mbed_cloud_dev_credentials.c with your own developer cert." |
ccli8 |
7:6aee86899520 | 21 | #endif |
ccli8 |
7:6aee86899520 | 22 | |
ccli8 |
7:6aee86899520 | 23 | #include <inttypes.h> |
ccli8 |
7:6aee86899520 | 24 | |
ccli8 |
7:6aee86899520 | 25 | const char MBED_CLOUD_DEV_BOOTSTRAP_ENDPOINT_NAME[] = ""; |
ccli8 |
7:6aee86899520 | 26 | const char MBED_CLOUD_DEV_ACCOUNT_ID[] = ""; |
ccli8 |
7:6aee86899520 | 27 | const char MBED_CLOUD_DEV_BOOTSTRAP_SERVER_URI[] = ""; |
ccli8 |
7:6aee86899520 | 28 | |
ccli8 |
7:6aee86899520 | 29 | const uint8_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE[] = |
ccli8 |
7:6aee86899520 | 30 | { 0x0 }; |
ccli8 |
7:6aee86899520 | 31 | |
ccli8 |
7:6aee86899520 | 32 | const uint8_t MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE[] = |
ccli8 |
7:6aee86899520 | 33 | { 0x0 }; |
ccli8 |
7:6aee86899520 | 34 | |
ccli8 |
7:6aee86899520 | 35 | const uint8_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_PRIVATE_KEY[] = |
ccli8 |
7:6aee86899520 | 36 | { 0x0 }; |
ccli8 |
7:6aee86899520 | 37 | |
ccli8 |
7:6aee86899520 | 38 | const char MBED_CLOUD_DEV_MANUFACTURER[] = "dev_manufacturer"; |
ccli8 |
7:6aee86899520 | 39 | |
ccli8 |
7:6aee86899520 | 40 | const char MBED_CLOUD_DEV_MODEL_NUMBER[] = "dev_model_num"; |
ccli8 |
7:6aee86899520 | 41 | |
ccli8 |
7:6aee86899520 | 42 | const char MBED_CLOUD_DEV_SERIAL_NUMBER[] = "0"; |
ccli8 |
7:6aee86899520 | 43 | |
ccli8 |
7:6aee86899520 | 44 | const char MBED_CLOUD_DEV_DEVICE_TYPE[] = "dev_device_type"; |
ccli8 |
7:6aee86899520 | 45 | |
ccli8 |
7:6aee86899520 | 46 | const char MBED_CLOUD_DEV_HARDWARE_VERSION[] = "dev_hardware_version"; |
ccli8 |
7:6aee86899520 | 47 | |
ccli8 |
7:6aee86899520 | 48 | const uint32_t MBED_CLOUD_DEV_MEMORY_TOTAL_KB = 0; |
ccli8 |
7:6aee86899520 | 49 | const uint32_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE_SIZE = sizeof(MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE); |
ccli8 |
7:6aee86899520 | 50 | const uint32_t MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE_SIZE = sizeof(MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE); |
ccli8 |
7:6aee86899520 | 51 | const uint32_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_PRIVATE_KEY_SIZE = sizeof(MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_PRIVATE_KEY); |
ccli8 |
7:6aee86899520 | 52 | |
ccli8 |
7:6aee86899520 | 53 | #endif //__MBED_CLOUD_DEV_CREDENTIALS_H__ |