Fork for workshops

Committer:
JimCarver
Date:
Fri Oct 12 21:22:49 2018 +0000
Revision:
0:6b753f761943
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
JimCarver 0:6b753f761943 1 // ----------------------------------------------------------------------------
JimCarver 0:6b753f761943 2 // Copyright 2016-2017 ARM Ltd.
JimCarver 0:6b753f761943 3 //
JimCarver 0:6b753f761943 4 // SPDX-License-Identifier: Apache-2.0
JimCarver 0:6b753f761943 5 //
JimCarver 0:6b753f761943 6 // Licensed under the Apache License, Version 2.0 (the "License");
JimCarver 0:6b753f761943 7 // you may not use this file except in compliance with the License.
JimCarver 0:6b753f761943 8 // You may obtain a copy of the License at
JimCarver 0:6b753f761943 9 //
JimCarver 0:6b753f761943 10 // http://www.apache.org/licenses/LICENSE-2.0
JimCarver 0:6b753f761943 11 //
JimCarver 0:6b753f761943 12 // Unless required by applicable law or agreed to in writing, software
JimCarver 0:6b753f761943 13 // distributed under the License is distributed on an "AS IS" BASIS,
JimCarver 0:6b753f761943 14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
JimCarver 0:6b753f761943 15 // See the License for the specific language governing permissions and
JimCarver 0:6b753f761943 16 // limitations under the License.
JimCarver 0:6b753f761943 17 // ----------------------------------------------------------------------------
JimCarver 0:6b753f761943 18
JimCarver 0:6b753f761943 19 // This file is a template and it's intented to be copied to the application
JimCarver 0:6b753f761943 20 // Enable this configuration
JimCarver 0:6b753f761943 21
JimCarver 0:6b753f761943 22 #ifndef MBED_CLOUD_CLIENT_USER_CONFIG_H
JimCarver 0:6b753f761943 23 #define MBED_CLOUD_CLIENT_USER_CONFIG_H
JimCarver 0:6b753f761943 24
JimCarver 0:6b753f761943 25 #ifdef MBED_CONF_APP_ENDPOINT_TYPE
JimCarver 0:6b753f761943 26 #define MBED_CLOUD_CLIENT_ENDPOINT_TYPE MBED_CONF_APP_ENDPOINT_TYPE
JimCarver 0:6b753f761943 27 #else
JimCarver 0:6b753f761943 28 #define MBED_CLOUD_CLIENT_ENDPOINT_TYPE "default"
JimCarver 0:6b753f761943 29 #endif
JimCarver 0:6b753f761943 30
JimCarver 0:6b753f761943 31 // Enable either TCP or UDP, but no both
JimCarver 0:6b753f761943 32 #define MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP
JimCarver 0:6b753f761943 33 // MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP
JimCarver 0:6b753f761943 34
JimCarver 0:6b753f761943 35 #define MBED_CLOUD_CLIENT_LIFETIME 3600
JimCarver 0:6b753f761943 36
JimCarver 0:6b753f761943 37 #define MBED_CLOUD_CLIENT_SUPPORT_UPDATE
JimCarver 0:6b753f761943 38 #define SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE 1024
JimCarver 0:6b753f761943 39
JimCarver 0:6b753f761943 40 // set flag to enable update support in mbed Cloud client
JimCarver 0:6b753f761943 41 #define MBED_CLOUD_CLIENT_SUPPORT_UPDATE
JimCarver 0:6b753f761943 42
JimCarver 0:6b753f761943 43 // set download buffer size in bytes (min. 1024 bytes)
JimCarver 0:6b753f761943 44
JimCarver 0:6b753f761943 45 // Use larger buffers in Linux //
JimCarver 0:6b753f761943 46 #ifdef __linux__
JimCarver 0:6b753f761943 47 #define MBED_CLOUD_CLIENT_UPDATE_BUFFER (2 * 1024 * 1024)
JimCarver 0:6b753f761943 48 #else
JimCarver 0:6b753f761943 49 #define MBED_CLOUD_CLIENT_UPDATE_BUFFER 2048
JimCarver 0:6b753f761943 50 #endif
JimCarver 0:6b753f761943 51
JimCarver 0:6b753f761943 52 // Developer flags for Update feature
JimCarver 0:6b753f761943 53 #if MBED_CONF_APP_DEVELOPER_MODE == 1
JimCarver 0:6b753f761943 54 #define MBED_CLOUD_DEV_UPDATE_CERT
JimCarver 0:6b753f761943 55 #define MBED_CLOUD_DEV_UPDATE_ID
JimCarver 0:6b753f761943 56 #endif // MBED_CONF_APP_DEVELOPER_MODE
JimCarver 0:6b753f761943 57
JimCarver 0:6b753f761943 58 #endif // MBED_CLOUD_CLIENT_USER_CONFIG_H
JimCarver 0:6b753f761943 59