Simple Mbed Cloud client application using features of K64F including Wi-Fi and SD Card
Fork of mbed-cloud-example_GR-LYCHEE by
mbed_cloud_client_user_config.h@9:9fade4bb2774, 2018-04-25 (annotated)
- Committer:
- MarceloSalazar
- Date:
- Wed Apr 25 00:16:01 2018 +0100
- Revision:
- 9:9fade4bb2774
- Parent:
- 7:179a952c4a39
Update to MCC v1.3.0 GA
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
MarceloSalazar | 7:179a952c4a39 | 1 | // ---------------------------------------------------------------------------- |
MarceloSalazar | 7:179a952c4a39 | 2 | // Copyright 2016-2017 ARM Ltd. |
MarceloSalazar | 7:179a952c4a39 | 3 | // |
MarceloSalazar | 7:179a952c4a39 | 4 | // SPDX-License-Identifier: Apache-2.0 |
MarceloSalazar | 7:179a952c4a39 | 5 | // |
MarceloSalazar | 7:179a952c4a39 | 6 | // Licensed under the Apache License, Version 2.0 (the "License"); |
MarceloSalazar | 7:179a952c4a39 | 7 | // you may not use this file except in compliance with the License. |
MarceloSalazar | 7:179a952c4a39 | 8 | // You may obtain a copy of the License at |
MarceloSalazar | 7:179a952c4a39 | 9 | // |
MarceloSalazar | 7:179a952c4a39 | 10 | // http://www.apache.org/licenses/LICENSE-2.0 |
MarceloSalazar | 7:179a952c4a39 | 11 | // |
MarceloSalazar | 7:179a952c4a39 | 12 | // Unless required by applicable law or agreed to in writing, software |
MarceloSalazar | 7:179a952c4a39 | 13 | // distributed under the License is distributed on an "AS IS" BASIS, |
MarceloSalazar | 7:179a952c4a39 | 14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
MarceloSalazar | 7:179a952c4a39 | 15 | // See the License for the specific language governing permissions and |
MarceloSalazar | 7:179a952c4a39 | 16 | // limitations under the License. |
MarceloSalazar | 7:179a952c4a39 | 17 | // ---------------------------------------------------------------------------- |
MarceloSalazar | 7:179a952c4a39 | 18 | |
MarceloSalazar | 7:179a952c4a39 | 19 | // This file is a template and it's intented to be copied to the application |
MarceloSalazar | 7:179a952c4a39 | 20 | // Enable this configuration |
MarceloSalazar | 7:179a952c4a39 | 21 | |
MarceloSalazar | 7:179a952c4a39 | 22 | #ifndef MBED_CLOUD_CLIENT_USER_CONFIG_H |
MarceloSalazar | 7:179a952c4a39 | 23 | #define MBED_CLOUD_CLIENT_USER_CONFIG_H |
MarceloSalazar | 7:179a952c4a39 | 24 | |
MarceloSalazar | 9:9fade4bb2774 | 25 | #ifdef MBED_CONF_APP_ENDPOINT_TYPE |
MarceloSalazar | 9:9fade4bb2774 | 26 | #define MBED_CLOUD_CLIENT_ENDPOINT_TYPE MBED_CONF_APP_ENDPOINT_TYPE |
MarceloSalazar | 9:9fade4bb2774 | 27 | #else |
MarceloSalazar | 7:179a952c4a39 | 28 | #define MBED_CLOUD_CLIENT_ENDPOINT_TYPE "default" |
MarceloSalazar | 9:9fade4bb2774 | 29 | #endif |
MarceloSalazar | 7:179a952c4a39 | 30 | |
MarceloSalazar | 7:179a952c4a39 | 31 | // Enable either TCP or UDP, but no both |
MarceloSalazar | 7:179a952c4a39 | 32 | #define MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP |
MarceloSalazar | 7:179a952c4a39 | 33 | // MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP |
MarceloSalazar | 7:179a952c4a39 | 34 | |
MarceloSalazar | 7:179a952c4a39 | 35 | #define MBED_CLOUD_CLIENT_LIFETIME 3600 |
MarceloSalazar | 7:179a952c4a39 | 36 | |
MarceloSalazar | 7:179a952c4a39 | 37 | #define MBED_CLOUD_CLIENT_SUPPORT_UPDATE |
MarceloSalazar | 7:179a952c4a39 | 38 | #define SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE 1024 |
MarceloSalazar | 7:179a952c4a39 | 39 | |
MarceloSalazar | 7:179a952c4a39 | 40 | // set flag to enable update support in mbed Cloud client |
MarceloSalazar | 7:179a952c4a39 | 41 | #define MBED_CLOUD_CLIENT_SUPPORT_UPDATE |
MarceloSalazar | 7:179a952c4a39 | 42 | |
MarceloSalazar | 7:179a952c4a39 | 43 | // set download buffer size in bytes (min. 1024 bytes) |
MarceloSalazar | 7:179a952c4a39 | 44 | |
MarceloSalazar | 7:179a952c4a39 | 45 | // Use larger buffers in Linux // |
MarceloSalazar | 7:179a952c4a39 | 46 | #ifdef __linux__ |
MarceloSalazar | 7:179a952c4a39 | 47 | #define MBED_CLOUD_CLIENT_UPDATE_BUFFER (2 * 1024 * 1024) |
MarceloSalazar | 7:179a952c4a39 | 48 | #else |
MarceloSalazar | 7:179a952c4a39 | 49 | #define MBED_CLOUD_CLIENT_UPDATE_BUFFER 2048 |
MarceloSalazar | 7:179a952c4a39 | 50 | #endif |
MarceloSalazar | 7:179a952c4a39 | 51 | |
MarceloSalazar | 7:179a952c4a39 | 52 | // Developer flags for Update feature |
MarceloSalazar | 7:179a952c4a39 | 53 | #if MBED_CONF_APP_DEVELOPER_MODE == 1 |
MarceloSalazar | 7:179a952c4a39 | 54 | #define MBED_CLOUD_DEV_UPDATE_CERT |
MarceloSalazar | 7:179a952c4a39 | 55 | #define MBED_CLOUD_DEV_UPDATE_ID |
MarceloSalazar | 7:179a952c4a39 | 56 | #endif // MBED_CONF_APP_DEVELOPER_MODE |
MarceloSalazar | 7:179a952c4a39 | 57 | |
MarceloSalazar | 7:179a952c4a39 | 58 | #endif // MBED_CLOUD_CLIENT_USER_CONFIG_H |
MarceloSalazar | 7:179a952c4a39 | 59 |