Add support for Connect and FW Update

Fork of example-Ethernet-mbed-Cloud-connect by ST

Committer:
MarceloSalazar
Date:
Mon Oct 15 01:13:24 2018 +0100
Revision:
14:13ea72e8475c
Parent:
6:2d0e0866f2e7
Add support for FW Update

Who changed what in which revision?

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