|
11 | 11 | |
12 | 12 | Built by Khoi Hoang https://github.com/khoih-prog/MySQL_MariaDB_Generic |
13 | 13 | Licensed under MIT license |
14 | | - Version: 1.0.0 |
| 14 | + Version: 1.0.1 |
15 | 15 |
|
16 | 16 | Version Modified By Date Comments |
17 | 17 | ------- ----------- ---------- ----------- |
18 | 18 | 1.0.0 K Hoang 13/08/2020 Initial coding/porting to support nRF52, SAM DUE and SAMD21/SAMD51 boards using W5x00 Ethernet |
19 | | - (using Ethernet, EthernetLarge, Ethernet2, Ethernet3 library) and WiFiNINA |
| 19 | + (Ethernet, EthernetLarge, Ethernet2, Ethernet3 library), WiFiNINA and ESP8266/ESP32-AT shields |
| 20 | + 1.0.1 K Hoang 18/08/2020 Add support to Ethernet ENC28J60. Fix bug, optimize code. |
20 | 21 | **********************************************************************************************************************************/ |
21 | 22 |
|
22 | 23 | #ifndef MYSQL_GENERIC_ETHERNET_H |
|
27 | 28 | #if USE_ETHERNET |
28 | 29 | #include "Ethernet.h" |
29 | 30 | EthernetClient client; |
30 | | - #warning Use Ethernet lib |
| 31 | + #warning Using Ethernet lib |
31 | 32 | #elif USE_ETHERNET_LARGE |
32 | 33 | #include "EthernetLarge.h" |
33 | 34 | EthernetClient client; |
34 | | - #warning Use EthernetLarge lib |
| 35 | + #warning Using EthernetLarge lib |
35 | 36 | #elif USE_ETHERNET2 |
36 | 37 | #include "Ethernet2.h" |
37 | 38 | EthernetClient client; |
38 | | - #warning Use Ethernet2 lib |
| 39 | + #warning Using Ethernet2 lib |
39 | 40 | #elif USE_ETHERNET3 |
40 | 41 | #include "Ethernet3.h" |
41 | 42 | EthernetClient client; |
42 | | - #warning Use Ethernet3 lib |
| 43 | + #warning Using Ethernet3 lib |
43 | 44 | #elif USE_ETHERNET_ESP8266 |
44 | 45 | #include "Ethernet_ESP8266.h" |
45 | 46 | EthernetClient client; |
46 | | - #warning Use Ethernet_ESP8266 lib |
| 47 | + #warning Using Ethernet_ESP8266 lib |
47 | 48 | #elif USE_ETHERNET_LAN8742A |
48 | 49 | #include <LwIP.h> |
49 | 50 | #include <STM32Ethernet.h> |
50 | 51 | EthernetClient client; |
51 | | - #warning Use Ethernet_LAN8742A lib |
| 52 | + #warning Using Ethernet_LAN8742A lib |
| 53 | + |
| 54 | +// KH, from v1.0.1 |
| 55 | +#elif USE_UIP_ETHERNET |
| 56 | + #include <UIPEthernet.h> |
| 57 | + #include <utility/logging.h> |
| 58 | + EthernetClient client; |
| 59 | + #warning Using ENC28J60 UIPEthernet lib |
| 60 | +////// |
| 61 | + |
52 | 62 | #elif USE_CUSTOM_ETHERNET |
53 | 63 | #include "Ethernet_XYZ.h" |
54 | 64 | EthernetClient client; |
55 | | - #warning Use Custom Ethernet library from EthernetWrapper. You must include a library here or error. |
| 65 | + #warning Using Custom Ethernet library from EthernetWrapper. You must include a library here or error. |
56 | 66 | #else |
57 | 67 | // Backup if none is selected |
58 | 68 | #define USE_ETHERNET true |
59 | 69 | #include "Ethernet.h" |
60 | 70 | EthernetClient client; |
61 | | - #warning Use Ethernet lib |
| 71 | + #warning Using Ethernet lib |
62 | 72 | #endif |
63 | 73 |
|
64 | 74 | #include <MySQL_Generic_Connection.h> |
|
0 commit comments