IoTivity C++ SDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ocstackconfig.h
Go to the documentation of this file.
1 //******************************************************************
2 //
3 // Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved.
4 //
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
6 //
7 // Licensed under the Apache License, Version 2.0 (the "License");
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
10 //
11 // http://www.apache.org/licenses/LICENSE-2.0
12 //
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an "AS IS" BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
18 //
19 //******************************************************************
20 
21 
29 #ifndef OCSTACK_CONFIG_H_
30 #define OCSTACK_CONFIG_H_
31 
36 #ifdef ARDUINO
37 #define MAX_URI_LENGTH (64)
38 #else
39 #define MAX_URI_LENGTH (256)
40 #endif
41 
46 #ifdef ARDUINO
47 #define MAX_QUERY_LENGTH (64)
48 #else
49 #define MAX_QUERY_LENGTH (256)
50 #endif
51 
52 
58 #define MAX_MANUFACTURER_NAME_LENGTH (64)
59 
65 #define MAX_MANUFACTURER_URL_LENGTH (256)
66 
71 #define MAX_PLATFORM_NAME_LENGTH (64)
72 
77 #define MAX_PLATFORM_URL_LENGTH (256)
78 
83 #define MAX_CONTAINED_RESOURCES (5)
84 
89 #ifdef ARDUINO
90 #define MAX_HEADER_OPTIONS (2)
91 #else
92 #define MAX_HEADER_OPTIONS (50)
93 #endif
94 
98 #ifdef ARDUINO
99 #define MAX_HEADER_OPTION_DATA_LENGTH (20)
100 #else
101 #define MAX_HEADER_OPTION_DATA_LENGTH (1024)
102 #endif
103 
112 #define MAX_CB_TIMEOUT_SECONDS (2 * 60 * 60) // 2 hours = 7200 seconds.
113 
114 #endif //OCSTACK_CONFIG_H_