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.

https://os.mbed.com/media/cache/platforms/NuMaker-PFM-M487.png.170x170_q85.png https://os.mbed.com/media/cache/platforms/NuMaker-PFM-NUC472Small.png.170x170_q85.png

Committer:
ccli8
Date:
Mon Oct 08 16:42:08 2018 +0800
Revision:
7:6aee86899520
Parent:
0:83caa8fa1d2c
Update to simple-mbed-cloud-client 1.4.1

1. Update to mbed-os 5.10
2. Remove sd-driver.lib, which is integrated into mbed-os.
3. Remove tools\ originally for packing bootloader and application. It is replaced with
managed bootloader mechanism.
4. Support default block device, which is enabled since mbed-os 5.10.
(1) Support Nuvoton SD card in SD bus mode as default
(2) Support SD card in SPI mode
5. Support default network interface, which is enabled sicne mbed-os 5.10.
(1) Support Ethernet as default
(2) Support WiFi ESP8266
6. Support OTA

Who changed what in which revision?

UserRevisionLine numberNew 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__