Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-cloud-example-c030 by
mbed_cloud_client_user_config.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 #ifdef MBED_CONF_APP_ENDPOINT_TYPE 00026 #define MBED_CLOUD_CLIENT_ENDPOINT_TYPE MBED_CONF_APP_ENDPOINT_TYPE 00027 #else 00028 #define MBED_CLOUD_CLIENT_ENDPOINT_TYPE "default" 00029 #endif 00030 00031 // Enable either TCP or UDP, but no both 00032 #define MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP 00033 // MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP 00034 00035 #define MBED_CLOUD_CLIENT_LIFETIME 3600 00036 00037 #define MBED_CLOUD_CLIENT_SUPPORT_UPDATE 00038 #define SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE 1024 00039 00040 // set flag to enable update support in mbed Cloud client 00041 #define MBED_CLOUD_CLIENT_SUPPORT_UPDATE 00042 00043 // set download buffer size in bytes (min. 1024 bytes) 00044 00045 // Use larger buffers in Linux // 00046 #ifdef __linux__ 00047 #define MBED_CLOUD_CLIENT_UPDATE_BUFFER (2 * 1024 * 1024) 00048 #else 00049 #define MBED_CLOUD_CLIENT_UPDATE_BUFFER 2048 00050 #endif 00051 00052 // Developer flags for Update feature 00053 #if MBED_CONF_APP_DEVELOPER_MODE == 1 00054 #define MBED_CLOUD_DEV_UPDATE_CERT 00055 #define MBED_CLOUD_DEV_UPDATE_ID 00056 #endif // MBED_CONF_APP_DEVELOPER_MODE 00057 00058 #endif // MBED_CLOUD_CLIENT_USER_CONFIG_H 00059
Generated on Wed Jul 20 2022 11:30:55 by
1.7.2
