|
22 | 22 | You should have received a copy of the GNU Lesser General Public License along with this library;
|
23 | 23 | if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
24 | 24 |
|
25 |
| - Version: 1.3.0 |
| 25 | + Version: 1.4.0 |
26 | 26 |
|
27 | 27 | Version Modified By Date Comments
|
28 | 28 | ------- ----------- ---------- -----------
|
29 | 29 | 1.2.3 K Hoang 17/07/2021 Initial porting for WT32_ETH01 (ESP32 + LAN8720). Sync with ESPAsyncWebServer v1.2.3
|
30 | 30 | 1.2.4 K Hoang 02/08/2021 Fix Mbed TLS compile error with ESP32 core v2.0.0-rc1+
|
31 | 31 | 1.2.5 K Hoang 09/10/2021 Update `platform.ini` and `library.json`Working only with core v1.0.6-
|
32 | 32 | 1.3.0 K Hoang 23/10/2021 Making compatible with breaking core v2.0.0+
|
| 33 | + 1.4.0 K Hoang 27/11/2021 Auto detect ESP32 core version |
33 | 34 | *****************************************************************************************************************************/
|
34 | 35 |
|
35 | 36 | #ifndef _AsyncWebServer_WT32_ETH01_H_
|
36 | 37 | #define _AsyncWebServer_WT32_ETH01_H_
|
37 | 38 |
|
38 |
| -#if !defined(USING_CORE_ESP32_CORE_V200_PLUS) |
39 |
| - #define USING_CORE_ESP32_CORE_V200_PLUS true |
40 |
| - #warning Using code for ESP32 core v2.0.0+ |
41 |
| - #define ASYNC_WEBSERVER_WT32_ETH01_VERSION "AsyncWebServer_WT32_ETH01 v1.3.0 for core v2.0.0+" |
42 |
| -#else |
43 |
| - #warning Using code for ESP32 core v1.0.6- |
44 |
| - #define ASYNC_WEBSERVER_WT32_ETH01_VERSION "AsyncWebServer_WT32_ETH01 v1.3.0 for core v1.0.6-" |
45 |
| -#endif |
46 |
| - |
47 | 39 | #if ESP32
|
48 |
| - #warning Using ESP32 architecture for WebServer_WT32_ETH01 |
49 |
| - #define BOARD_NAME "WT32-ETH01" |
50 |
| -#else |
51 |
| - #error This code is designed to run on ESP32 platform! Please check your Tools->Board setting. |
52 |
| -#endif |
53 | 40 |
|
54 |
| -#if ESP32 |
55 |
| - #warning Using ESP32 architecture for WebServer_WT32_ETH01 |
| 41 | + #if (_ASYNC_WEBSERVER_LOGLEVEL_ > 2 ) |
| 42 | + #warning Using ESP32 architecture for WebServer_WT32_ETH01 |
| 43 | + #endif |
| 44 | + |
56 | 45 | #define BOARD_NAME "WT32-ETH01"
|
57 | 46 | #else
|
58 | 47 | #error This code is designed for WT32_ETH01 to run on ESP32 platform! Please check your Tools->Board setting.
|
59 | 48 | #endif
|
60 | 49 |
|
| 50 | +#if ( ( defined(ESP_ARDUINO_VERSION_MAJOR) && (ESP_ARDUINO_VERSION_MAJOR >= 2) ) && ( ARDUINO_ESP32_GIT_VER != 0x46d5afb1 ) ) |
| 51 | + #define USING_CORE_ESP32_CORE_V200_PLUS true |
| 52 | + |
| 53 | + #if (_ASYNC_WEBSERVER_LOGLEVEL_ > 2 ) |
| 54 | + #warning Using code for ESP32 core v2.0.0+ in AsyncWebServer_WT32_ETH01.h |
| 55 | + #endif |
| 56 | + |
| 57 | + #define ASYNC_WEBSERVER_WT32_ETH01_VERSION "AsyncWebServer_WT32_ETH01 v1.4.0 for core v2.0.0+" |
| 58 | +#else |
| 59 | + |
| 60 | + #if (_ASYNC_WEBSERVER_LOGLEVEL_ > 2 ) |
| 61 | + #warning Using code for ESP32 core v1.0.6- in AsyncWebServer_WT32_ETH01.h |
| 62 | + #endif |
| 63 | + |
| 64 | + #define ASYNC_WEBSERVER_WT32_ETH01_VERSION "AsyncWebServer_WT32_ETH01 v1.4.0 for core v1.0.6-" |
| 65 | +#endif |
| 66 | + |
| 67 | + |
| 68 | + |
61 | 69 | #include "Arduino.h"
|
62 | 70 |
|
63 | 71 | #include <functional>
|
|
0 commit comments