Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-os by
features/FEATURE_COMMON_PAL/mbed-client-c/nsdl-c/sn_config.h@1:3deb71413561, 2017-07-20 (annotated)
- Committer:
- xuaner
- Date:
- Thu Jul 20 14:26:57 2017 +0000
- Revision:
- 1:3deb71413561
- Parent:
- 0:f269e3021894
mbed_os
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
elessair | 0:f269e3021894 | 1 | /* |
elessair | 0:f269e3021894 | 2 | * Copyright (c) 2016 ARM Limited. All rights reserved. |
elessair | 0:f269e3021894 | 3 | * SPDX-License-Identifier: Apache-2.0 |
elessair | 0:f269e3021894 | 4 | * Licensed under the Apache License, Version 2.0 (the License); you may |
elessair | 0:f269e3021894 | 5 | * not use this file except in compliance with the License. |
elessair | 0:f269e3021894 | 6 | * You may obtain a copy of the License at |
elessair | 0:f269e3021894 | 7 | * |
elessair | 0:f269e3021894 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
elessair | 0:f269e3021894 | 9 | * |
elessair | 0:f269e3021894 | 10 | * Unless required by applicable law or agreed to in writing, software |
elessair | 0:f269e3021894 | 11 | * distributed under the License is distributed on an AS IS BASIS, WITHOUT |
elessair | 0:f269e3021894 | 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
elessair | 0:f269e3021894 | 13 | * See the License for the specific language governing permissions and |
elessair | 0:f269e3021894 | 14 | * limitations under the License. |
elessair | 0:f269e3021894 | 15 | */ |
elessair | 0:f269e3021894 | 16 | |
elessair | 0:f269e3021894 | 17 | #ifndef SN_CONFIG_H |
elessair | 0:f269e3021894 | 18 | #define SN_CONFIG_H |
elessair | 0:f269e3021894 | 19 | |
elessair | 0:f269e3021894 | 20 | /** |
elessair | 0:f269e3021894 | 21 | * \brief Configuration options (set of defines and values) |
elessair | 0:f269e3021894 | 22 | * |
elessair | 0:f269e3021894 | 23 | * This lists set of compile-time options that needs to be used to enable |
elessair | 0:f269e3021894 | 24 | * or disable features selectively, and set the values for the mandatory |
elessair | 0:f269e3021894 | 25 | * parameters. |
elessair | 0:f269e3021894 | 26 | */ |
elessair | 0:f269e3021894 | 27 | |
elessair | 0:f269e3021894 | 28 | /** |
elessair | 0:f269e3021894 | 29 | * \def SN_COAP_DUPLICATION_MAX_MSGS_COUNT |
elessair | 0:f269e3021894 | 30 | * \brief For Message duplication detection |
elessair | 0:f269e3021894 | 31 | * Init value for the maximum count of messages to be stored for duplication detection |
elessair | 0:f269e3021894 | 32 | * Setting of this value to 0 will disable duplication check, also reduce use of ROM memory |
elessair | 0:f269e3021894 | 33 | * Default is set to 1. |
elessair | 0:f269e3021894 | 34 | */ |
elessair | 0:f269e3021894 | 35 | #undef SN_COAP_DUPLICATION_MAX_MSGS_COUNT /* 1 */ |
elessair | 0:f269e3021894 | 36 | |
elessair | 0:f269e3021894 | 37 | /** |
elessair | 0:f269e3021894 | 38 | * \def SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE |
elessair | 0:f269e3021894 | 39 | * |
elessair | 0:f269e3021894 | 40 | * \brief For Message blockwising |
elessair | 0:f269e3021894 | 41 | * Init value for the maximum payload size to be sent and received at one blockwise message |
elessair | 0:f269e3021894 | 42 | * Setting of this value to 0 will disable this feature, and also reduce use of ROM memory |
elessair | 0:f269e3021894 | 43 | * Note: This define is common for both received and sent Blockwise messages |
elessair | 0:f269e3021894 | 44 | */ |
elessair | 0:f269e3021894 | 45 | #undef SN_COAP_MAX_BLOCKWISE_PAYLOAD_SIZE /* 0 */ // < Must be 2^x and x is at least 4. Suitable values: 0, 16, 32, 64, 128, 256, 512 and 1024 |
elessair | 0:f269e3021894 | 46 | |
elessair | 0:f269e3021894 | 47 | /** |
elessair | 0:f269e3021894 | 48 | * \def COAP_DISABLE_OBS_FEATURE |
elessair | 0:f269e3021894 | 49 | * |
elessair | 0:f269e3021894 | 50 | * \brief Disables CoAP 'obs' sending feature |
elessair | 0:f269e3021894 | 51 | * as part of registration message, this might be |
elessair | 0:f269e3021894 | 52 | * needed to be enabled for some strict LWM2M server implementation. |
elessair | 0:f269e3021894 | 53 | * By default, this feature is disabled. |
elessair | 0:f269e3021894 | 54 | */ |
elessair | 0:f269e3021894 | 55 | #undef COAP_DISABLE_OBS_FEATURE |
elessair | 0:f269e3021894 | 56 | |
elessair | 0:f269e3021894 | 57 | /** |
elessair | 0:f269e3021894 | 58 | * \def SN_COAP_RESENDING_QUEUE_SIZE_MSGS |
elessair | 0:f269e3021894 | 59 | * |
elessair | 0:f269e3021894 | 60 | * \brief Sets the number of messages stored |
elessair | 0:f269e3021894 | 61 | * in the resending queue. Default is 2 |
elessair | 0:f269e3021894 | 62 | */ |
elessair | 0:f269e3021894 | 63 | #undef SN_COAP_RESENDING_QUEUE_SIZE_MSGS /* 2 */ // < Default re-sending queue size - defines how many messages can be stored. Setting this to 0 disables feature |
elessair | 0:f269e3021894 | 64 | |
elessair | 0:f269e3021894 | 65 | /** |
elessair | 0:f269e3021894 | 66 | * \def SN_COAP_RESENDING_QUEUE_SIZE_BYTES |
elessair | 0:f269e3021894 | 67 | * |
elessair | 0:f269e3021894 | 68 | * \brief Sets the size of the re-sending buffer. |
elessair | 0:f269e3021894 | 69 | * Setting this to 0 disables this feature. |
elessair | 0:f269e3021894 | 70 | * By default, this feature is disabled. |
elessair | 0:f269e3021894 | 71 | */ |
elessair | 0:f269e3021894 | 72 | #undef SN_COAP_RESENDING_QUEUE_SIZE_BYTES /* 0 */ // Default re-sending queue size - defines size of the re-sending buffer. Setting this to 0 disables feature |
elessair | 0:f269e3021894 | 73 | |
elessair | 0:f269e3021894 | 74 | /** |
elessair | 0:f269e3021894 | 75 | * \def SN_COAP_MAX_INCOMING_MESSAGE_SIZE |
elessair | 0:f269e3021894 | 76 | * |
elessair | 0:f269e3021894 | 77 | * \brief Sets the maximum size (in bytes) that |
elessair | 0:f269e3021894 | 78 | * mbed Client will allow to be handled while |
elessair | 0:f269e3021894 | 79 | * receiving big payload in blockwise mode. |
elessair | 0:f269e3021894 | 80 | * Application can set this value based on their |
elessair | 0:f269e3021894 | 81 | * available storage capability. |
elessair | 0:f269e3021894 | 82 | * By default, maximum size is UINT16_MAX, 65535 bytes. |
elessair | 0:f269e3021894 | 83 | */ |
elessair | 0:f269e3021894 | 84 | #undef SN_COAP_MAX_INCOMING_MESSAGE_SIZE /* UINT16_MAX */ |
elessair | 0:f269e3021894 | 85 | |
elessair | 0:f269e3021894 | 86 | #ifdef MBED_CLIENT_USER_CONFIG_FILE |
elessair | 0:f269e3021894 | 87 | #include MBED_CLIENT_USER_CONFIG_FILE |
elessair | 0:f269e3021894 | 88 | #endif |
elessair | 0:f269e3021894 | 89 | |
elessair | 0:f269e3021894 | 90 | #endif // SN_CONFIG_H |