This repository contains the example code to: 1) Connect RTL8195AM board to Pelion 2) Enable and run firmware update on RTL8195AM

RTL8195AM SMCC application demonstrates how to create a Simple Mbed Cloud Client application that can connect to Pelion, register resources and get FW updates.

Committer:
Lu Zhang
Date:
Fri Dec 14 18:59:27 2018 +0800
Revision:
7:f3c46cdb5ccf
Parent:
0:07e701513236
Update mbed-os.lib link to the master repository (14 Dec 2018)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
prashantrar 0:07e701513236 1 /*
prashantrar 0:07e701513236 2 * Copyright (c) 2017 ARM Limited. All rights reserved.
prashantrar 0:07e701513236 3 * SPDX-License-Identifier: Apache-2.0
prashantrar 0:07e701513236 4 * Licensed under the Apache License, Version 2.0 (the License); you may
prashantrar 0:07e701513236 5 * not use this file except in compliance with the License.
prashantrar 0:07e701513236 6 * You may obtain a copy of the License at
prashantrar 0:07e701513236 7 *
prashantrar 0:07e701513236 8 * http://www.apache.org/licenses/LICENSE-2.0
prashantrar 0:07e701513236 9 *
prashantrar 0:07e701513236 10 * Unless required by applicable law or agreed to in writing, software
prashantrar 0:07e701513236 11 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
prashantrar 0:07e701513236 12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
prashantrar 0:07e701513236 13 * See the License for the specific language governing permissions and
prashantrar 0:07e701513236 14 * limitations under the License.
prashantrar 0:07e701513236 15 */
prashantrar 0:07e701513236 16 #ifndef __MBED_CLOUD_DEV_CREDENTIALS_H__
prashantrar 0:07e701513236 17 #define __MBED_CLOUD_DEV_CREDENTIALS_H__
prashantrar 0:07e701513236 18
prashantrar 0:07e701513236 19 #if MBED_CONF_APP_DEVELOPER_MODE == 1
prashantrar 0:07e701513236 20 #error "Replace mbed_cloud_dev_credentials.c with your own developer cert."
prashantrar 0:07e701513236 21 #endif
prashantrar 0:07e701513236 22
prashantrar 0:07e701513236 23 #include <inttypes.h>
prashantrar 0:07e701513236 24
prashantrar 0:07e701513236 25 const char MBED_CLOUD_DEV_BOOTSTRAP_ENDPOINT_NAME[] = "";
prashantrar 0:07e701513236 26 const char MBED_CLOUD_DEV_ACCOUNT_ID[] = "";
prashantrar 0:07e701513236 27 const char MBED_CLOUD_DEV_BOOTSTRAP_SERVER_URI[] = "";
prashantrar 0:07e701513236 28
prashantrar 0:07e701513236 29 const uint8_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE[] =
prashantrar 0:07e701513236 30 { 0x0 };
prashantrar 0:07e701513236 31
prashantrar 0:07e701513236 32 const uint8_t MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE[] =
prashantrar 0:07e701513236 33 { 0x0 };
prashantrar 0:07e701513236 34
prashantrar 0:07e701513236 35 const uint8_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_PRIVATE_KEY[] =
prashantrar 0:07e701513236 36 { 0x0 };
prashantrar 0:07e701513236 37
prashantrar 0:07e701513236 38 const char MBED_CLOUD_DEV_MANUFACTURER[] = "dev_manufacturer";
prashantrar 0:07e701513236 39
prashantrar 0:07e701513236 40 const char MBED_CLOUD_DEV_MODEL_NUMBER[] = "dev_model_num";
prashantrar 0:07e701513236 41
prashantrar 0:07e701513236 42 const char MBED_CLOUD_DEV_SERIAL_NUMBER[] = "0";
prashantrar 0:07e701513236 43
prashantrar 0:07e701513236 44 const char MBED_CLOUD_DEV_DEVICE_TYPE[] = "dev_device_type";
prashantrar 0:07e701513236 45
prashantrar 0:07e701513236 46 const char MBED_CLOUD_DEV_HARDWARE_VERSION[] = "dev_hardware_version";
prashantrar 0:07e701513236 47
prashantrar 0:07e701513236 48 const uint32_t MBED_CLOUD_DEV_MEMORY_TOTAL_KB = 0;
prashantrar 0:07e701513236 49 const uint32_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE_SIZE = sizeof(MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_CERTIFICATE);
prashantrar 0:07e701513236 50 const uint32_t MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE_SIZE = sizeof(MBED_CLOUD_DEV_BOOTSTRAP_SERVER_ROOT_CA_CERTIFICATE);
prashantrar 0:07e701513236 51 const uint32_t MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_PRIVATE_KEY_SIZE = sizeof(MBED_CLOUD_DEV_BOOTSTRAP_DEVICE_PRIVATE_KEY);
prashantrar 0:07e701513236 52
prashantrar 0:07e701513236 53 #endif //__MBED_CLOUD_DEV_CREDENTIALS_H__