![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
A metronome using the FRDM K64F board
mbed_client_config.h@0:a7a43371b306, 2017-05-14 (annotated)
- Committer:
- ram54288
- Date:
- Sun May 14 18:40:18 2017 +0000
- Revision:
- 0:a7a43371b306
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ram54288 | 0:a7a43371b306 | 1 | /* |
ram54288 | 0:a7a43371b306 | 2 | * Copyright (c) 2016 ARM Limited. All rights reserved. |
ram54288 | 0:a7a43371b306 | 3 | * SPDX-License-Identifier: Apache-2.0 |
ram54288 | 0:a7a43371b306 | 4 | * Licensed under the Apache License, Version 2.0 (the License); you may |
ram54288 | 0:a7a43371b306 | 5 | * not use this file except in compliance with the License. |
ram54288 | 0:a7a43371b306 | 6 | * You may obtain a copy of the License at |
ram54288 | 0:a7a43371b306 | 7 | * |
ram54288 | 0:a7a43371b306 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
ram54288 | 0:a7a43371b306 | 9 | * |
ram54288 | 0:a7a43371b306 | 10 | * Unless required by applicable law or agreed to in writing, software |
ram54288 | 0:a7a43371b306 | 11 | * distributed under the License is distributed on an AS IS BASIS, WITHOUT |
ram54288 | 0:a7a43371b306 | 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
ram54288 | 0:a7a43371b306 | 13 | * See the License for the specific language governing permissions and |
ram54288 | 0:a7a43371b306 | 14 | * limitations under the License. |
ram54288 | 0:a7a43371b306 | 15 | */ |
ram54288 | 0:a7a43371b306 | 16 | #ifndef MBED_CLIENT_CONFIG_H |
ram54288 | 0:a7a43371b306 | 17 | #define MBED_CLIENT_CONFIG_H |
ram54288 | 0:a7a43371b306 | 18 | |
ram54288 | 0:a7a43371b306 | 19 | |
ram54288 | 0:a7a43371b306 | 20 | // Defines the number of times client should try re-connection towards |
ram54288 | 0:a7a43371b306 | 21 | // Server in case of connectivity loss , also defines the number of CoAP |
ram54288 | 0:a7a43371b306 | 22 | // re-transmission attempts.Default value is 3 |
ram54288 | 0:a7a43371b306 | 23 | #define M2M_CLIENT_RECONNECTION_COUNT 3 |
ram54288 | 0:a7a43371b306 | 24 | |
ram54288 | 0:a7a43371b306 | 25 | // Defines the interval (in seconds) in which client should try re-connection towards |
ram54288 | 0:a7a43371b306 | 26 | // Server in case of connectivity loss , also use the same interval for CoAP |
ram54288 | 0:a7a43371b306 | 27 | // re-transmission attempts. Default value is 5 seconds |
ram54288 | 0:a7a43371b306 | 28 | #define M2M_CLIENT_RECONNECTION_INTERVAL 5 |
ram54288 | 0:a7a43371b306 | 29 | |
ram54288 | 0:a7a43371b306 | 30 | // Defines the keep-alive interval (in seconds) in which client should send keep alive |
ram54288 | 0:a7a43371b306 | 31 | // pings to server while connected through TCP mode. Default value is 300 seconds |
ram54288 | 0:a7a43371b306 | 32 | #define M2M_CLIENT_TCP_KEEPALIVE_TIME 300 |
ram54288 | 0:a7a43371b306 | 33 | |
ram54288 | 0:a7a43371b306 | 34 | // Defines the maximum CoAP messages that client can hold, maximum value is 6 |
ram54288 | 0:a7a43371b306 | 35 | #define SN_COAP_DUPLICATION_MAX_MSGS_COUNT 2 |
ram54288 | 0:a7a43371b306 | 36 | |
ram54288 | 0:a7a43371b306 | 37 | // Defines the size of blockwise CoAP messages that client can handle. |
ram54288 | 0:a7a43371b306 | 38 | // The values that can be defined uust be 2^x and x is at least 4. |
ram54288 | 0:a7a43371b306 | 39 | // Suitable values: 0, 16, 32, 64, 128, 256, 512 and 1024 |
ram54288 | 0:a7a43371b306 | 40 | #define SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE 1024 |
ram54288 | 0:a7a43371b306 | 41 | |
ram54288 | 0:a7a43371b306 | 42 | // Many pure LWM2M servers doen't accept 'obs' text in registration message. |
ram54288 | 0:a7a43371b306 | 43 | // While using Client against such servers, this flag can be set to define to |
ram54288 | 0:a7a43371b306 | 44 | // disable client sending 'obs' text for observable resources. |
ram54288 | 0:a7a43371b306 | 45 | #undef COAP_DISABLE_OBS_FEATURE |
ram54288 | 0:a7a43371b306 | 46 | |
ram54288 | 0:a7a43371b306 | 47 | // Disable Bootstrap functionality in client in order to reduce code size, if bootstrap |
ram54288 | 0:a7a43371b306 | 48 | // functionality is not required. |
ram54288 | 0:a7a43371b306 | 49 | #undef M2M_CLIENT_DISABLE_BOOTSTRAP_FEATURE |
ram54288 | 0:a7a43371b306 | 50 | |
ram54288 | 0:a7a43371b306 | 51 | #endif // MBED_CLIENT_CONFIG_H |
ram54288 | 0:a7a43371b306 | 52 |