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.
update_default_resources.c@7:6aee86899520, 2018-10-08 (annotated)
- 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?
User | Revision | Line number | New contents of line |
---|---|---|---|
cyliang | 0:83caa8fa1d2c | 1 | // ---------------------------------------------------------------------------- |
ccli8 |
7:6aee86899520 | 2 | // Copyright 2016-2017 ARM Ltd. |
cyliang | 0:83caa8fa1d2c | 3 | // |
cyliang | 0:83caa8fa1d2c | 4 | // SPDX-License-Identifier: Apache-2.0 |
cyliang | 0:83caa8fa1d2c | 5 | // |
cyliang | 0:83caa8fa1d2c | 6 | // Licensed under the Apache License, Version 2.0 (the "License"); |
cyliang | 0:83caa8fa1d2c | 7 | // you may not use this file except in compliance with the License. |
cyliang | 0:83caa8fa1d2c | 8 | // You may obtain a copy of the License at |
cyliang | 0:83caa8fa1d2c | 9 | // |
cyliang | 0:83caa8fa1d2c | 10 | // http://www.apache.org/licenses/LICENSE-2.0 |
cyliang | 0:83caa8fa1d2c | 11 | // |
cyliang | 0:83caa8fa1d2c | 12 | // Unless required by applicable law or agreed to in writing, software |
cyliang | 0:83caa8fa1d2c | 13 | // distributed under the License is distributed on an "AS IS" BASIS, |
cyliang | 0:83caa8fa1d2c | 14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
cyliang | 0:83caa8fa1d2c | 15 | // See the License for the specific language governing permissions and |
cyliang | 0:83caa8fa1d2c | 16 | // limitations under the License. |
cyliang | 0:83caa8fa1d2c | 17 | // ---------------------------------------------------------------------------- |
cyliang | 0:83caa8fa1d2c | 18 | |
cyliang | 0:83caa8fa1d2c | 19 | #ifdef MBED_CLOUD_CLIENT_USER_CONFIG_FILE |
cyliang | 0:83caa8fa1d2c | 20 | #include MBED_CLOUD_CLIENT_USER_CONFIG_FILE |
cyliang | 0:83caa8fa1d2c | 21 | #endif |
cyliang | 0:83caa8fa1d2c | 22 | |
cyliang | 0:83caa8fa1d2c | 23 | #include <stdint.h> |
cyliang | 0:83caa8fa1d2c | 24 | |
cyliang | 0:83caa8fa1d2c | 25 | #ifdef MBED_CLOUD_DEV_UPDATE_ID |
cyliang | 0:83caa8fa1d2c | 26 | const uint8_t arm_uc_vendor_id[16] = { "dev_manufacturer" }; |
cyliang | 0:83caa8fa1d2c | 27 | const uint16_t arm_uc_vendor_id_size = sizeof(arm_uc_vendor_id); |
cyliang | 0:83caa8fa1d2c | 28 | |
cyliang | 0:83caa8fa1d2c | 29 | const uint8_t arm_uc_class_id[16] = { "dev_model_number" }; |
cyliang | 0:83caa8fa1d2c | 30 | const uint16_t arm_uc_class_id_size = sizeof(arm_uc_class_id); |
cyliang | 0:83caa8fa1d2c | 31 | #endif |
cyliang | 0:83caa8fa1d2c | 32 | |
cyliang | 0:83caa8fa1d2c | 33 | #ifdef MBED_CLOUD_DEV_UPDATE_CERT |
cyliang | 0:83caa8fa1d2c | 34 | const uint8_t arm_uc_default_fingerprint[32] = { 0 }; |
cyliang | 0:83caa8fa1d2c | 35 | const uint16_t arm_uc_default_fingerprint_size = |
cyliang | 0:83caa8fa1d2c | 36 | sizeof(arm_uc_default_fingerprint); |
cyliang | 0:83caa8fa1d2c | 37 | |
cyliang | 0:83caa8fa1d2c | 38 | const uint8_t arm_uc_default_certificate[1] = { 0 }; |
cyliang | 0:83caa8fa1d2c | 39 | const uint16_t arm_uc_default_certificate_size = |
cyliang | 0:83caa8fa1d2c | 40 | sizeof(arm_uc_default_certificate); |
cyliang | 0:83caa8fa1d2c | 41 | #endif |