1 //******************************************************************
3 // Copyright 2014 Intel Corporation All Rights Reserved.
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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
11 // http://www.apache.org/licenses/LICENSE-2.0
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.
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
21 #ifndef OCSTACK_CONFIG_H_
22 #define OCSTACK_CONFIG_H_
24 // This file contains all the variables which can be configured/modified as
25 // per platform or specific product usage scenarios.
27 /** This would need to be updated in future as we move to support IPv6 and other
30 #define DEV_ADDR_SIZE_MAX (16)
33 * Maximum length of the response supported by Server for any REST request.
36 #define MAX_RESPONSE_LENGTH (256)
38 #define MAX_RESPONSE_LENGTH (1024)
42 * Maximum length of the request supported by Client/Server for any REST request.
45 #define MAX_REQUEST_LENGTH (256)
47 #define MAX_REQUEST_LENGTH (1024)
51 * Maximum length of the URI supported by client/server while processing
52 * REST requests/responses.
54 #define MAX_URI_LENGTH (64)
57 * Maximum length of the query supported by client/server while processing
58 * REST requests/responses.
60 #define MAX_QUERY_LENGTH (64)
63 * Maximum length of the Manufacturer name supported by the server
64 * for manufacturer name
66 #define MAX_MANUFACTURER_NAME_LENGTH (16)
69 * Maximum length of the URL to the Manufacturer details supported by
72 #define MAX_MANUFACTURER_URL_LENGTH (32)
75 * Maximum number of resources which can be contained inside collection
78 #define MAX_CONTAINED_RESOURCES (5)
81 * Maximum number of vendor specific header options an application can set or receive in pdu
83 #define MAX_HEADER_OPTIONS (2)
86 * Maximum Length of the vendor specific header option
88 #define MAX_HEADER_OPTION_DATA_LENGTH (16)
90 #endif //OCSTACK_CONFIG_H_