Mbed Cloud example program for workshop in W27 2018.

Dependencies:   MMA7660 LM75B

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers mbed_cloud_client_user_config_template.h Source File

mbed_cloud_client_user_config_template.h

00001 // ----------------------------------------------------------------------------
00002 // Copyright 2016-2017 ARM Ltd.
00003 //
00004 // SPDX-License-Identifier: Apache-2.0
00005 //
00006 // Licensed under the Apache License, Version 2.0 (the "License");
00007 // you may not use this file except in compliance with the License.
00008 // You may obtain a copy of the License at
00009 //
00010 //     http://www.apache.org/licenses/LICENSE-2.0
00011 //
00012 // Unless required by applicable law or agreed to in writing, software
00013 // distributed under the License is distributed on an "AS IS" BASIS,
00014 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015 // See the License for the specific language governing permissions and
00016 // limitations under the License.
00017 // ----------------------------------------------------------------------------
00018 
00019 // This file is a template and it's intented to be copied to the application
00020 /* // Enable this configuration
00021 
00022 #ifndef MBED_CLOUD_CLIENT_USER_CONFIG_H
00023 #define MBED_CLOUD_CLIENT_USER_CONFIG_H
00024 
00025 
00026 #define MBED_CLOUD_CLIENT_ENDPOINT_TYPE         "default"
00027 
00028 // Enable either TCP or UDP, but no both
00029 #define MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP
00030 // MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP
00031 
00032 #define MBED_CLOUD_CLIENT_LIFETIME              3600
00033 
00034 #define MBED_CLOUD_CLIENT_SUPPORT_UPDATE
00035 #define SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE       1024
00036 
00037 // set flag to enable update support in mbed Cloud client
00038 #define MBED_CLOUD_CLIENT_SUPPORT_UPDATE
00039 
00040 // set download buffer size in bytes (min. 1024 bytes)
00041 
00042 // Use larger buffers in Linux //
00043 #ifdef __linux__
00044 #define MBED_CLOUD_CLIENT_UPDATE_BUFFER          (2 * 1024 * 1024)
00045 #else
00046 #define MBED_CLOUD_CLIENT_UPDATE_BUFFER          2048
00047 #endif
00048 
00049 // Developer flags for Update feature
00050 #if MBED_CONF_APP_DEVELOPER_MODE == 1
00051     #define MBED_CLOUD_DEV_UPDATE_CERT
00052     #define MBED_CLOUD_DEV_UPDATE_ID
00053 #endif // MBED_CONF_APP_DEVELOPER_MODE
00054 
00055 #endif // MBED_CLOUD_CLIENT_USER_CONFIG_H
00056 
00057 */