Commander-API  V2.0.0
Commander-API is a C++ API, that parses character based commands.
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 /*
11 MIT License
12 
13 Copyright (c) 2020 Daniel Hajnal
14 
15 Permission is hereby granted, free of charge, to any person obtaining a copy
16 of this software and associated documentation files (the "Software"), to deal
17 in the Software without restriction, including without limitation the rights
18 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19 copies of the Software, and to permit persons to whom the Software is
20 furnished to do so, subject to the following conditions:
21 
22 The above copyright notice and this permission notice shall be included in all
23 copies or substantial portions of the Software.
24 
25 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31 SOFTWARE.
32 */
33 
34 
35 #ifndef COMMANDER_API_SRC_COMMANDER_SETTINGS_HPP_
36 #define COMMANDER_API_SRC_COMMANDER_SETTINGS_HPP_
37 
38 #ifdef ARDUINO
39 #ifndef COMMANDER_USE_ARDUINO_SERIAL_RESPONSE
40 #define COMMANDER_USE_ARDUINO_SERIAL_RESPONSE
41 #endif
42 #endif
43 
44 #ifdef ESP32
45 #ifndef COMMANDER_USE_WIFI_CLIENT_RESPONSE
46 #define COMMANDER_USE_WIFI_CLIENT_RESPONSE
47 #endif
48 #endif
49 
51 #ifndef COMMANDER_MAX_COMMAND_SIZE
52 #define COMMANDER_MAX_COMMAND_SIZE 30
53 #endif
54 
60 #ifndef COMMAND_PRINTF_BUFF_LEN
61 #define COMMAND_PRINTF_BUFF_LEN 100
62 #endif
63 
64 
65 #endif /* COMMANDER_API_SRC_COMMANDER_SETTINGS_HPP_ */