1
mbed_cloud_client_user_config.h@0:d193d40d4fa1, 2018-03-21 (annotated)
- Committer:
- group-STM32F031
- Date:
- Wed Mar 21 18:13:41 2018 +0000
- Revision:
- 0:d193d40d4fa1
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
group-STM32F031 | 0:d193d40d4fa1 | 1 | // ---------------------------------------------------------------------------- |
group-STM32F031 | 0:d193d40d4fa1 | 2 | // Copyright 2016-2017 ARM Ltd. |
group-STM32F031 | 0:d193d40d4fa1 | 3 | // |
group-STM32F031 | 0:d193d40d4fa1 | 4 | // SPDX-License-Identifier: Apache-2.0 |
group-STM32F031 | 0:d193d40d4fa1 | 5 | // |
group-STM32F031 | 0:d193d40d4fa1 | 6 | // Licensed under the Apache License, Version 2.0 (the "License"); |
group-STM32F031 | 0:d193d40d4fa1 | 7 | // you may not use this file except in compliance with the License. |
group-STM32F031 | 0:d193d40d4fa1 | 8 | // You may obtain a copy of the License at |
group-STM32F031 | 0:d193d40d4fa1 | 9 | // |
group-STM32F031 | 0:d193d40d4fa1 | 10 | // http://www.apache.org/licenses/LICENSE-2.0 |
group-STM32F031 | 0:d193d40d4fa1 | 11 | // |
group-STM32F031 | 0:d193d40d4fa1 | 12 | // Unless required by applicable law or agreed to in writing, software |
group-STM32F031 | 0:d193d40d4fa1 | 13 | // distributed under the License is distributed on an "AS IS" BASIS, |
group-STM32F031 | 0:d193d40d4fa1 | 14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
group-STM32F031 | 0:d193d40d4fa1 | 15 | // See the License for the specific language governing permissions and |
group-STM32F031 | 0:d193d40d4fa1 | 16 | // limitations under the License. |
group-STM32F031 | 0:d193d40d4fa1 | 17 | // ---------------------------------------------------------------------------- |
group-STM32F031 | 0:d193d40d4fa1 | 18 | |
group-STM32F031 | 0:d193d40d4fa1 | 19 | |
group-STM32F031 | 0:d193d40d4fa1 | 20 | #ifndef MBED_CLOUD_CLIENT_USER_CONFIG_H |
group-STM32F031 | 0:d193d40d4fa1 | 21 | #define MBED_CLOUD_CLIENT_USER_CONFIG_H |
group-STM32F031 | 0:d193d40d4fa1 | 22 | |
group-STM32F031 | 0:d193d40d4fa1 | 23 | #define MBED_CLOUD_CLIENT_ENDPOINT_TYPE "default" |
group-STM32F031 | 0:d193d40d4fa1 | 24 | #define MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP |
group-STM32F031 | 0:d193d40d4fa1 | 25 | #define MBED_CLOUD_CLIENT_LIFETIME 3600 |
group-STM32F031 | 0:d193d40d4fa1 | 26 | |
group-STM32F031 | 0:d193d40d4fa1 | 27 | #define MBED_CLOUD_CLIENT_SUPPORT_UPDATE |
group-STM32F031 | 0:d193d40d4fa1 | 28 | #define SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE 1024 |
group-STM32F031 | 0:d193d40d4fa1 | 29 | |
group-STM32F031 | 0:d193d40d4fa1 | 30 | /* set flag to enable update support in mbed Cloud client */ |
group-STM32F031 | 0:d193d40d4fa1 | 31 | #define MBED_CLOUD_CLIENT_SUPPORT_UPDATE |
group-STM32F031 | 0:d193d40d4fa1 | 32 | |
group-STM32F031 | 0:d193d40d4fa1 | 33 | /* set download buffer size in bytes (min. 1024 bytes) */ |
group-STM32F031 | 0:d193d40d4fa1 | 34 | |
group-STM32F031 | 0:d193d40d4fa1 | 35 | /* Use larger buffers in Linux */ |
group-STM32F031 | 0:d193d40d4fa1 | 36 | #ifdef __linux__ |
group-STM32F031 | 0:d193d40d4fa1 | 37 | #define MBED_CLOUD_CLIENT_UPDATE_BUFFER (2 * 1024 * 1024) |
group-STM32F031 | 0:d193d40d4fa1 | 38 | #else |
group-STM32F031 | 0:d193d40d4fa1 | 39 | #define MBED_CLOUD_CLIENT_UPDATE_BUFFER 2048 |
group-STM32F031 | 0:d193d40d4fa1 | 40 | #endif |
group-STM32F031 | 0:d193d40d4fa1 | 41 | |
group-STM32F031 | 0:d193d40d4fa1 | 42 | /* Developer flags for Update feature */ |
group-STM32F031 | 0:d193d40d4fa1 | 43 | #if MBED_CONF_APP_DEVELOPER_MODE == 1 |
group-STM32F031 | 0:d193d40d4fa1 | 44 | #define MBED_CLOUD_DEV_UPDATE_CERT |
group-STM32F031 | 0:d193d40d4fa1 | 45 | #define MBED_CLOUD_DEV_UPDATE_ID |
group-STM32F031 | 0:d193d40d4fa1 | 46 | #endif /* MBED_CONF_APP_DEVELOPER_MODE */ |
group-STM32F031 | 0:d193d40d4fa1 | 47 | |
group-STM32F031 | 0:d193d40d4fa1 | 48 | #endif /* MBED_CLOUD_CLIENT_USER_CONFIG_H */ |