|
12 | 12 |
|
13 | 13 | // #define TINY_GSM_DEBUG Serial |
14 | 14 |
|
| 15 | +#ifdef TINY_GSM_MUX_COUNT |
| 16 | +#undef TINY_GSM_MUX_COUNT |
| 17 | +#endif |
| 18 | +// supports 12 sockets (0-11); any of them can be SSL |
15 | 19 | #define TINY_GSM_MUX_COUNT 12 |
16 | | -#define TINY_GSM_SECURE_MUX_COUNT 12 |
| 20 | + |
| 21 | +#ifdef TINY_GSM_SECURE_MUX_COUNT |
| 22 | +#undef TINY_GSM_SECURE_MUX_COUNT |
| 23 | +#endif |
17 | 24 | // supports 12 sockets (0-11); any of them can be SSL |
| 25 | +#define TINY_GSM_SECURE_MUX_COUNT 12 |
18 | 26 |
|
19 | | -#define TINY_GSM_SEND_MAX_SIZE 1460 |
| 27 | +#ifdef TINY_GSM_SEND_MAX_SIZE |
| 28 | +#undef TINY_GSM_SEND_MAX_SIZE |
| 29 | +#endif |
20 | 30 | // QISEND and QSSLSEND both accept up to 1460 bytes of input |
| 31 | +#define TINY_GSM_SEND_MAX_SIZE 1460 |
21 | 32 |
|
22 | | -#if !defined(TINY_GSM_CONNECT_TIMEOUT) |
23 | | -#define TINY_GSM_CONNECT_TIMEOUT 150 |
| 33 | + |
| 34 | +#ifdef TINY_GSM_CONNECT_TIMEOUT |
| 35 | +#undef TINY_GSM_CONNECT_TIMEOUT |
24 | 36 | #endif |
| 37 | +#define TINY_GSM_CONNECT_TIMEOUT 150 |
25 | 38 |
|
26 | 39 | // Also supports 6 SSL contexts (0-5) |
27 | 40 | // The SSL context is collection of SSL settings, not the connection identifier. |
28 | 41 | // This library always uses SSL context 0. |
29 | 42 | // #define TINY_GSM_DEFAULT_SSL_CTX 0 |
30 | 43 |
|
| 44 | +#ifdef TINY_GSM_NO_MODEM_BUFFER |
| 45 | +#undef TINY_GSM_NO_MODEM_BUFFER |
| 46 | +#endif |
| 47 | +#ifdef TINY_GSM_BUFFER_READ_NO_CHECK |
| 48 | +#undef TINY_GSM_BUFFER_READ_NO_CHECK |
| 49 | +#endif |
| 50 | +#ifndef TINY_GSM_BUFFER_READ_AND_CHECK_SIZE |
31 | 51 | #define TINY_GSM_BUFFER_READ_AND_CHECK_SIZE |
| 52 | +#endif |
| 53 | +#ifdef TINY_GSM_MUX_DYNAMIC |
| 54 | +#undef TINY_GSM_MUX_DYNAMIC |
| 55 | +#endif |
| 56 | +#ifndef TINY_GSM_MUX_STATIC |
32 | 57 | #define TINY_GSM_MUX_STATIC |
| 58 | +#endif |
33 | 59 | #ifdef AT_NL |
34 | 60 | #undef AT_NL |
35 | 61 | #endif |
|
0 commit comments