Commander-API  V2.1.0
Simple Command Parser
Loading...
Searching...
No Matches
Commander-Settings.hpp
Go to the documentation of this file.
1/*
2 * Created on June 18 2020
3 *
4 * Copyright (c) 2020 - Daniel Hajnal
5 * hajnal.daniel96@gmail.com
6 * This file is part of the Commander-API project.
7 * Modified 2022.02.06
8*/
9
10/*
11MIT License
12
13Copyright (c) 2020 Daniel Hajnal
14
15Permission is hereby granted, free of charge, to any person obtaining a copy
16of this software and associated documentation files (the "Software"), to deal
17in the Software without restriction, including without limitation the rights
18to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19copies of the Software, and to permit persons to whom the Software is
20furnished to do so, subject to the following conditions:
21
22The above copyright notice and this permission notice shall be included in all
23copies or substantial portions of the Software.
24
25THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31SOFTWARE.
32*/
33
34
35#ifndef COMMANDER_API_SRC_COMMANDER_SETTINGS_HPP_
36#define COMMANDER_API_SRC_COMMANDER_SETTINGS_HPP_
37
38#ifdef ESP32
39
40 #ifndef COMMANDER_USE_WIFI_CLIENT_RESPONSE
41 #define COMMANDER_USE_WIFI_CLIENT_RESPONSE
42 #endif
43
44 #ifndef COMMANDER_ENABLE_PIPE_MODULE
45 #define COMMANDER_ENABLE_PIPE_MODULE
46 #endif
47
48 #ifndef COMMANDER_MAX_COMMAND_SIZE
49 #define COMMANDER_MAX_COMMAND_SIZE 50
50 #endif
51
52#endif
53
54#ifdef ESP8266
55
56 #ifndef COMMANDER_USE_WIFI_CLIENT_RESPONSE
57 #define COMMANDER_USE_WIFI_CLIENT_RESPONSE
58 #endif
59
60 #ifndef COMMANDER_ENABLE_PIPE_MODULE
61 #define COMMANDER_ENABLE_PIPE_MODULE
62 #endif
63
64 #ifndef COMMANDER_MAX_COMMAND_SIZE
65 #define COMMANDER_MAX_COMMAND_SIZE 50
66 #endif
67
68#endif
69
70// Enable the Pipe module by default
71#define COMMANDER_ENABLE_PIPE_MODULE
72
74#ifndef COMMANDER_MAX_COMMAND_SIZE
75 #define COMMANDER_MAX_COMMAND_SIZE 30
76#endif
77
78#endif /* COMMANDER_API_SRC_COMMANDER_SETTINGS_HPP_ */