FRDM K64F Metronome

Committer:
ram54288
Date:
Sun May 14 18:35:07 2017 +0000
Revision:
0:a2cb7295a1f7
Initial commit

Who changed what in which revision?

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