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 #warning MBED_CLIENT_USER_CONFIG_FILE macro is deprecated. \
43 Please use only MBED_CLOUD_CLIENT_USER_CONFIG_FILE.
44 #endif
45 
46 #ifdef __cplusplus
47 #if defined (__ICCARM__)
48 #define m2m_deprecated
49 #else
50 #define m2m_deprecated __attribute__ ((deprecated))
51 #endif
52 #endif
53 
59 #ifndef MBED_CLOUD_CLIENT_ENDPOINT_TYPE
60 #define MBED_CLOUD_CLIENT_ENDPOINT_TYPE "default"
61 #endif
62 
63 // internal client configuration
64 #define MBED_CLOUD_CLIENT_PROFILE_FULL 1
65 #define MBED_CLOUD_CLIENT_PROFILE_LITE 2
66 #define MBED_CLOUD_CLIENT_PROFILE MBED_CLOUD_CLIENT_PROFILE_FULL
67 
74 #ifndef MBED_CLOUD_CLIENT_LIFETIME
75 #define MBED_CLOUD_CLIENT_LIFETIME 86400
76 #endif
77 
78 #if __DOXYGEN__
79 
83 #define MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP
84 
88 #define MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP
89 
93 #define MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP_QUEUE
94 #endif // __DOXYGEN__
95 
96 #if !defined(MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP) && !defined(MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP) && !defined(MBED_CLOUD_CLIENT_TRANSPORT_MODE_UDP_QUEUE)
97 #define MBED_CLOUD_CLIENT_TRANSPORT_MODE_TCP
98 #endif
99 
106 #ifndef MBED_CLOUD_CLIENT_LISTEN_PORT
107 #define MBED_CLOUD_CLIENT_LISTEN_PORT 0
108 #endif
109 
118 //#define MBED_CLOUD_CLIENT_CUSTOM_URI_PORT 5684
119 
120 
122 
123 #endif // MBED_CLOUD_CLIENT_CONFIG_H
Configuration options check.