Skip to content

Commit 52b856e

Browse files
committed
Merge branch 'ArduinoGIGATest'
2 parents b59a995 + 9a716d2 commit 52b856e

File tree

6 files changed

+30
-6
lines changed

6 files changed

+30
-6
lines changed

EMailSender.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* EMail Sender Arduino, esp8266, stm32 and esp32 library to send email
33
*
44
* AUTHOR: Renzo Mischianti
5-
* VERSION: 3.0.13
5+
* VERSION: 3.0.14
66
*
77
* https://www.mischianti.org/
88
*

EMailSender.h

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* EMail Sender Arduino, esp8266, stm32 and esp32 library to send email
33
*
44
* AUTHOR: Renzo Mischianti
5-
* VERSION: 3.0.13
5+
* VERSION: 3.0.14
66
*
77
* https://www.mischianti.org/
88
*
@@ -74,6 +74,10 @@
7474
#define EMAIL_NETWORK_TYPE DEFAULT_EMAIL_NETWORK_TYPE_SAMD
7575
#define INTERNAL_STORAGE DEFAULT_INTERNAL_ARDUINO_SAMD_STORAGE
7676
#define EXTERNAL_STORAGE DEFAULT_EXTERNAL_ARDUINO_SAMD_STORAGE
77+
#elif defined(ARDUINO_ARCH_MBED)
78+
#define EMAIL_NETWORK_TYPE DEFAULT_EMAIL_NETWORK_TYPE_MBED
79+
#define INTERNAL_STORAGE DEFAULT_INTERNAL_ARDUINO_MBED_STORAGE
80+
#define EXTERNAL_STORAGE DEFAULT_EXTERNAL_ARDUINO_MBED_STORAGE
7781
#else
7882
#define EMAIL_NETWORK_TYPE DEFAULT_EMAIL_NETWORK_TYPE_ARDUINO
7983
#define INTERNAL_STORAGE DEFAULT_INTERNAL_ARDUINO_STORAGE
@@ -236,6 +240,18 @@
236240
#elif(EMAIL_NETWORK_TYPE == NETWORK_WiFiNINA)
237241

238242
#include <WiFiNINA.h>
243+
#ifndef FORCE_DISABLE_SSL
244+
#define EMAIL_NETWORK_CLASS WiFiSSLClient
245+
#else
246+
#define EMAIL_NETWORK_CLASS WiFiClient
247+
#endif
248+
//#define EMAIL_NETWORK_SSL_CLASS WiFiSSLClient
249+
#define EMAIL_NETWORK_SERVER_CLASS WiFiServer
250+
#elif(EMAIL_NETWORK_TYPE == NETWORK_MBED_WIFI)
251+
252+
#include <WiFi.h>
253+
#include <WiFiSSLClient.h>
254+
239255
#ifndef FORCE_DISABLE_SSL
240256
#define EMAIL_NETWORK_CLASS WiFiSSLClient
241257
#else

EMailSenderKey.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* EMail Sender Arduino, esp8266, stm32 and esp32 library to send email
33
*
44
* AUTHOR: Renzo Mischianti
5-
* VERSION: 3.0.13
5+
* VERSION: 3.0.14
66
*
77
* https://www.mischianti.org/
88
*
@@ -41,7 +41,7 @@
4141
#define ENABLE_ATTACHMENTS
4242

4343
// Uncomment to enable printing out nice debug messages.
44-
//#define EMAIL_SENDER_DEBUG
44+
#define EMAIL_SENDER_DEBUG
4545

4646
// Define where debug output will be printed.
4747
#define DEBUG_PRINTER Serial
@@ -73,6 +73,7 @@
7373
#define NETWORK_UIPETHERNET (11)
7474
#define NETWORK_ETHERNET_2 (12)
7575
#define NETWORK_ETHERNET_GENERIC (13) // Ethernet generic
76+
#define NETWORK_MBED_WIFI (14) // Arduino GIGA R1 WiFi
7677

7778
// if you want force disable SSL if present uncomment this define
7879
// #define FORCE_DISABLE_SSL
@@ -116,6 +117,12 @@
116117
#define DEFAULT_INTERNAL_ARDUINO_RP2040_STORAGE STORAGE_LITTLEFS
117118
#define DEFAULT_EXTERNAL_ARDUINO_RP2040_STORAGE STORAGE_NONE
118119
#endif
120+
// Arduino MBED microcontrollers configuration LIKE Arduino GIGA
121+
#ifndef DEFAULT_EMAIL_NETWORK_TYPE_ARDUINO_MBED
122+
#define DEFAULT_EMAIL_NETWORK_TYPE_MBED NETWORK_MBED_WIFI
123+
#define DEFAULT_INTERNAL_ARDUINO_MBED_STORAGE STORAGE_NONE
124+
#define DEFAULT_EXTERNAL_ARDUINO_MBED_STORAGE STORAGE_SD
125+
#endif
119126

120127
#ifdef SSLCLIENT_WRAPPER
121128
// Generate the trust_anchors.h with this online generator

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Arduino (support W5100 like must be set, and ENC28J60 via UIPEthernet), esp8266
2626
#### [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/)
2727

2828
## Change log
29+
- 14/03/2024: v3.0.14 Support Arduino GIGA WiFi
2930
- 31/10/2023: v3.0.13 Fix wrong implementation of FORCE_DISABLE_SSL
3031
- 17/10/2023: v3.0.12 Fix warnigs of variable not used #43 thanks to @Patriboom @Andy2015
3132
- 16/02/2023: v3.0.11 Add support for Ethernet_Generic

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
},
1717
"url": "https://www.mischianti.org/category/my-libraries/emailsender-send-email-with-attachments/",
1818
"frameworks": "Arduino",
19-
"version": "3.0.13",
19+
"version": "3.0.14",
2020
"platforms": "*"
2121
}

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=EMailSender
2-
version=3.0.13
2+
version=3.0.14
33
author=Renzo Mischianti <renzo.mischianti@gmail.com>
44
maintainer=Renzo Mischianti <renzo.mischianti@gmail.com>
55
sentence=Send EMail via SMTP, library for Raspberry Pi Pico W, Arduino, SAMD (WiFiNINA), STM32, esp8266 and esp32.

0 commit comments

Comments
 (0)