| 2 |
raymond |
1 |
#ifndef LIBRARIES_ESPASYNCTCP_SRC_ASYNC_CONFIG_H_
|
|
|
2 |
#define LIBRARIES_ESPASYNCTCP_SRC_ASYNC_CONFIG_H_
|
|
|
3 |
|
|
|
4 |
#ifndef ASYNC_TCP_SSL_ENABLED
|
|
|
5 |
#define ASYNC_TCP_SSL_ENABLED 0
|
|
|
6 |
#endif
|
|
|
7 |
|
|
|
8 |
#ifndef TCP_MSS
|
|
|
9 |
// May have been definded as a -DTCP_MSS option on the compile line or not.
|
|
|
10 |
// Arduino core 2.3.0 or earlier does not do the -DTCP_MSS option.
|
|
|
11 |
// Later versions may set this option with info from board.txt.
|
|
|
12 |
// However, Core 2.4.0 and up board.txt does not define TCP_MSS for lwIP v1.4
|
|
|
13 |
#define TCP_MSS (1460)
|
|
|
14 |
#endif
|
|
|
15 |
|
|
|
16 |
// #define ASYNC_TCP_DEBUG(...) ets_printf(__VA_ARGS__)
|
|
|
17 |
// #define TCP_SSL_DEBUG(...) ets_printf(__VA_ARGS__)
|
|
|
18 |
// #define ASYNC_TCP_ASSERT( a ) do{ if(!(a)){ets_printf("ASSERT: %s %u \n", __FILE__, __LINE__);}}while(0)
|
|
|
19 |
|
|
|
20 |
// Starting with Arduino Core 2.4.0 and up the define of DEBUG_ESP_PORT
|
|
|
21 |
// can be handled through the Arduino IDE Board options instead of here.
|
|
|
22 |
// #define DEBUG_ESP_PORT Serial
|
|
|
23 |
// #define DEBUG_ESP_ASYNC_TCP 1
|
|
|
24 |
// #define DEBUG_ESP_TCP_SSL 1
|
|
|
25 |
|
|
|
26 |
#ifndef DEBUG_SKIP__DEBUG_PRINT_MACROS
|
|
|
27 |
|
|
|
28 |
#include <DebugPrintMacros.h>
|
|
|
29 |
|
|
|
30 |
#ifndef ASYNC_TCP_ASSERT
|
|
|
31 |
#define ASYNC_TCP_ASSERT(...) do { (void)0;} while(false)
|
|
|
32 |
#endif
|
|
|
33 |
#ifndef ASYNC_TCP_DEBUG
|
|
|
34 |
#define ASYNC_TCP_DEBUG(...) do { (void)0;} while(false)
|
|
|
35 |
#endif
|
|
|
36 |
#ifndef TCP_SSL_DEBUG
|
|
|
37 |
#define TCP_SSL_DEBUG(...) do { (void)0;} while(false)
|
|
|
38 |
#endif
|
|
|
39 |
|
|
|
40 |
#endif
|
|
|
41 |
|
|
|
42 |
#endif /* LIBRARIES_ESPASYNCTCP_SRC_ASYNC_CONFIG_H_ */
|