Skip to content

Commit

Permalink
Add support for Ethernet_Generic
Browse files Browse the repository at this point in the history
  • Loading branch information
xreef committed Feb 16, 2023
1 parent ed3471e commit 89b74ac
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion EMailSender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* EMail Sender Arduino, esp8266, stm32 and esp32 library to send email
*
* AUTHOR: Renzo Mischianti
* VERSION: 3.0.10
* VERSION: 3.0.11
*
* https://www.mischianti.org/
*
Expand Down
9 changes: 8 additions & 1 deletion EMailSender.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* EMail Sender Arduino, esp8266, stm32 and esp32 library to send email
*
* AUTHOR: Renzo Mischianti
* VERSION: 3.0.10
* VERSION: 3.0.11
*
* https://www.mischianti.org/
*
Expand Down Expand Up @@ -165,6 +165,13 @@
#define EMAIL_NETWORK_CLASS EthernetClient
#define EMAIL_NETWORK_SERVER_CLASS EthernetServer

#elif(EMAIL_NETWORK_TYPE == NETWORK_ETHERNET_GENERIC)

#include <Ethernet_Generic.h>
#include <SPI.h>
#define EMAIL_NETWORK_CLASS EthernetClient
#define EMAIL_NETWORK_SERVER_CLASS EthernetServer

#elif(EMAIL_NETWORK_TYPE == NETWORK_ENC28J60 || EMAIL_NETWORK_TYPE == NETWORK_UIPETHERNET)

#include <UIPEthernet.h>
Expand Down
4 changes: 3 additions & 1 deletion EMailSenderKey.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* EMail Sender Arduino, esp8266, stm32 and esp32 library to send email
*
* AUTHOR: Renzo Mischianti
* VERSION: 3.0.10
* VERSION: 3.0.11
*
* https://www.mischianti.org/
*
Expand Down Expand Up @@ -61,6 +61,7 @@
#define NETWORK_ESP8266 (1)
#define NETWORK_ESP8266_242 (6)
#define NETWORK_W5100 (2)
#define NETWORK_ETHERNET (2) // Standard Arduino Ethernet library
#define NETWORK_ENC28J60 (3)
#define NETWORK_ESP32 (4)
#define NETWORK_RP2040_WIFI (4)
Expand All @@ -71,6 +72,7 @@
#define NETWORK_ETHERNET_STM (10)
#define NETWORK_UIPETHERNET (11)
#define NETWORK_ETHERNET_2 (12)
#define NETWORK_ETHERNET_GENERIC (13) // Ethernet generic

// if you want force disable SSL if present uncomment this define
// #define FORCE_DISABLE_SSL
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Arduino (support W5100 like must be set, and ENC28J60 via UIPEthernet), esp8266
#### [Inviare email con allegati (libreria v2.x): esp32 e esp8266](https://www.mischianti.org/it/2020/06/16/inviare-email-con-allegati-libreria-v2-x-esp32-e-esp8266-part-2/)

## Change log
- 16/02/2023: v3.0.11 Add support for Ethernet_Generic
- 20/01/2023: v3.0.10 Add the management of ESP8266SdFat library on Raspberry Pi Pico [#forum](https://www.mischianti.org/forums/topic/raspberry-pico-w-emailsender)
- 17/01/2023: v3.0.10 Add the mamagement of auto check of response number #36 thanks to @HACKER-3000 @H3
- 13/01/2023: v3.0.9 Fix external storage error 404 ([#forum](https://www.mischianti.org/forums/topic/email-with-sd-files/)
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
},
"url": "https://www.mischianti.org/category/my-libraries/emailsender-send-email-with-attachments/",
"frameworks": "Arduino",
"version": "3.0.10",
"version": "3.0.11",
"platforms": "*"
}
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=EMailSender
version=3.0.10
version=3.0.11
author=Renzo Mischianti <[email protected]>
maintainer=Renzo Mischianti <[email protected]>
sentence=Send EMail via SMTP, library for Raspberry Pi Pico W, Arduino, SAMD (WiFiNINA), STM32, esp8266 and esp32.
Expand Down

0 comments on commit 89b74ac

Please sign in to comment.