supla-device
Loading...
Searching...
No Matches
config.h
1// SPDX-FileCopyrightText: AC SOFTWARE SP. Z O.O.
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#ifndef SRC_SUPLA_SUPLET_CONFIG_H_
5#define SRC_SUPLA_SUPLET_CONFIG_H_
6
7#ifndef SUPLA_SUPLET_ENABLED
8#if defined(SUPLA_TEST)
9#define SUPLA_SUPLET_ENABLED 1
10#else
11#define SUPLA_SUPLET_ENABLED 0
12#endif
13#endif
14
15#ifndef SUPLA_SUPLET_MAX_INSTANCES
16#define SUPLA_SUPLET_MAX_INSTANCES 8
17#endif
18
19#ifndef SUPLA_SUPLET_MAX_INSTANCE_ID
20#define SUPLA_SUPLET_MAX_INSTANCE_ID 255
21#endif
22
23#ifndef SUPLA_SUPLET_MAX_CONFIG_SIZE
24#define SUPLA_SUPLET_MAX_CONFIG_SIZE 512
25#endif
26
27#ifndef SUPLA_SUPLET_MAX_CACHED_DEFINITIONS
28#define SUPLA_SUPLET_MAX_CACHED_DEFINITIONS 16
29#endif
30
31#ifndef SUPLA_SUPLET_MAX_DEFINITION_JSON_SIZE
32#if defined(ESP8266) || defined(ARDUINO_ARCH_ESP8266)
33#define SUPLA_SUPLET_MAX_DEFINITION_JSON_SIZE 16384
34#else
35#define SUPLA_SUPLET_MAX_DEFINITION_JSON_SIZE 24576
36#endif
37#endif
38
39#ifndef SUPLA_SUPLET_DEFINITION_CACHE_CHUNK_SIZE
40#define SUPLA_SUPLET_DEFINITION_CACHE_CHUNK_SIZE 2048
41#endif
42
43#ifndef SUPLA_SUPLET_CALCFG_SESSION_TIMEOUT_MS
44#define SUPLA_SUPLET_CALCFG_SESSION_TIMEOUT_MS 30000
45#endif
46
47#endif // SRC_SUPLA_SUPLET_CONFIG_H_