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