Mistake on this page? Email us
MbedCloudClientConfig.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // Copyright 2016-2017 ARM Ltd.
3 //
4 // SPDX-License-Identifier: Apache-2.0
5 //
6 // Licensed under the Apache License, Version 2.0 (the "License");
7 // you may not use this file except in compliance with the License.
8 // You may obtain a copy of the License at
9 //
10 // http://www.apache.org/licenses/LICENSE-2.0
11 //
12 // Unless required by applicable law or agreed to in writing, software
13 // distributed under the License is distributed on an "AS IS" BASIS,
14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 // See the License for the specific language governing permissions and
16 // limitations under the License.
17 // ----------------------------------------------------------------------------
18 
19 #ifndef MBED_CLOUD_CLIENT_CONFIG_H
20 #define MBED_CLOUD_CLIENT_CONFIG_H
21 
22 #include <stdint.h>
23 
32 // Include configurations from mbed-client.
33 #include "mbed-client/m2mconfig.h"
34 
35 // Include user defined configuration.
36 #ifdef MBED_CLOUD_CLIENT_USER_CONFIG_FILE
37 #include MBED_CLOUD_CLIENT_USER_CONFIG_FILE
38 #endif
39 
40 #ifdef MBED_CLIENT_USER_CONFIG_FILE
41 #include MBED_CLIENT_USER_CONFIG_FILE
42 #endif
43 
44 #ifdef __cplusplus
45 #if defined (__ICCARM__)
46 #define m2m_deprecated
47 #else
48 #define m2m_deprecated __attribute__ ((deprecated))
49 #endif
50 #endif
51 
57 #ifndef MBED_CLOUD_CLIENT_ENDPOINT_TYPE
58 #define MBED_CLOUD_CLIENT_ENDPOINT_TYPE "default"
59 #endif
60 
61 // internal client configuration
62 #define MBED_CLOUD_CLIENT_PROFILE_FULL 1
63 #define MBED_CLOUD_CLIENT_PROFILE_LITE 2
64 #define MBED_CLOUD_CLIENT_PROFILE MBED_CLOUD_CLIENT_PROFILE_FULL
65 
72 #ifndef MBED_CLOUD_CLIENT_LIFETIME
73 #define MBED_CLOUD_CLIENT_LIFETIME 86400
74 #endif
75 
76 #if __DOXYGEN__
77 
81 #define MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP
82 
86 #define MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP
87 
91 #define MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP_QUEUE
92 #endif // __DOXYGEN__
93 
94 #if !defined(MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP) && !defined(MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP) && !defined(MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP_QUEUE)
95 #define MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP
96 #endif
97 
109 #if !defined(MBED_CLOUD_CLIENT_STL_API) || __DOXYGEN__
110 #define MBED_CLOUD_CLIENT_STL_API 0
111 #endif
112 
122 #ifndef MBED_CLOUD_CLIENT_STD_NAMESPACE_POLLUTION
123 #define MBED_CLOUD_CLIENT_STD_NAMESPACE_POLLUTION 0
124 #endif
125 
132 #ifndef MBED_CLOUD_CLIENT_LISTEN_PORT
133 #define MBED_CLOUD_CLIENT_LISTEN_PORT 0
134 #endif
135 
144 //#define MBED_CLOUD_CLIENT_CUSTOM_URI_PORT 5684
145 
146 
148 
149 #endif // MBED_CLOUD_CLIENT_CONFIG_H
Configuration options check.