supla-device
Loading...
Searching...
No Matches
config.h
1/*
2 Copyright (C) AC SOFTWARE SP. Z O.O
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 */
18
19#ifndef SRC_SUPLA_SUPLET_CONFIG_H_
20#define SRC_SUPLA_SUPLET_CONFIG_H_
21
22#ifndef SUPLA_SUPLET_ENABLED
23#if defined(SUPLA_TEST)
24#define SUPLA_SUPLET_ENABLED 1
25#else
26#define SUPLA_SUPLET_ENABLED 0
27#endif
28#endif
29
30#ifndef SUPLA_SUPLET_MAX_INSTANCES
31#define SUPLA_SUPLET_MAX_INSTANCES 8
32#endif
33
34#ifndef SUPLA_SUPLET_MAX_INSTANCE_ID
35#define SUPLA_SUPLET_MAX_INSTANCE_ID 255
36#endif
37
38#ifndef SUPLA_SUPLET_MAX_CONFIG_SIZE
39#define SUPLA_SUPLET_MAX_CONFIG_SIZE 512
40#endif
41
42#ifndef SUPLA_SUPLET_MAX_CACHED_DEFINITIONS
43#define SUPLA_SUPLET_MAX_CACHED_DEFINITIONS 16
44#endif
45
46#ifndef SUPLA_SUPLET_MAX_DEFINITION_JSON_SIZE
47#if defined(ESP8266) || defined(ARDUINO_ARCH_ESP8266) || \
48 defined(SUPLA_DEVICE_ESP8266)
49#define SUPLA_SUPLET_MAX_DEFINITION_JSON_SIZE 16384
50#else
51#define SUPLA_SUPLET_MAX_DEFINITION_JSON_SIZE 24576
52#endif
53#endif
54
55#ifndef SUPLA_SUPLET_DEFINITION_CACHE_CHUNK_SIZE
56#define SUPLA_SUPLET_DEFINITION_CACHE_CHUNK_SIZE 2048
57#endif
58
59#ifndef SUPLA_SUPLET_CALCFG_SESSION_TIMEOUT_MS
60#define SUPLA_SUPLET_CALCFG_SESSION_TIMEOUT_MS 30000
61#endif
62
63#endif // SRC_SUPLA_SUPLET_CONFIG_H_