Skip to content

Commit 0d0926f

Browse files
committed
Fix code of warnings xreef#43
1 parent a3eea2e commit 0d0926f

File tree

6 files changed

+19
-22
lines changed

6 files changed

+19
-22
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.12
5+
* VERSION: 3.0.13
66
*
77
* https://www.mischianti.org/
88
*

EMailSender.h

Lines changed: 14 additions & 18 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.12
5+
* VERSION: 3.0.13
66
*
77
* https://www.mischianti.org/
88
*
@@ -133,7 +133,7 @@
133133
#else
134134
#define EMAIL_NETWORK_CLASS WiFiClient
135135
#endif
136-
#define EMAIL_NETWORK_SSL_CLASS WiFiClientSecure
136+
//#define EMAIL_NETWORK_SSL_CLASS WiFiClientSecure
137137
#define EMAIL_NETWORK_SERVER_CLASS WiFiServer
138138

139139
#elif defined(ESP31B)
@@ -163,7 +163,7 @@
163163
#else
164164
#define EMAIL_NETWORK_CLASS WiFiClient
165165
#endif
166-
#define EMAIL_NETWORK_SSL_CLASS WiFiClientSecure
166+
//#define EMAIL_NETWORK_SSL_CLASS WiFiClientSecure
167167
#define EMAIL_NETWORK_SERVER_CLASS WiFiServer
168168

169169
#elif(EMAIL_NETWORK_TYPE == NETWORK_W5100 || EMAIL_NETWORK_TYPE == NETWORK_ETHERNET_ENC)
@@ -203,17 +203,13 @@
203203
#else
204204
#define EMAIL_NETWORK_CLASS WiFiClient
205205
#endif
206-
#define EMAIL_NETWORK_SSL_CLASS WiFiClientSecure
206+
//#define EMAIL_NETWORK_SSL_CLASS WiFiClientSecure
207207
#define EMAIL_NETWORK_SERVER_CLASS WiFiServer
208208

209209
#elif(EMAIL_NETWORK_TYPE == NETWORK_ESP32_ETH)
210210

211211
#include <ETH.h>
212-
#ifndef FORCE_DISABLE_SSL
213-
#define EMAIL_NETWORK_CLASS WiFiClientSecure
214-
#else
215-
#define EMAIL_NETWORK_CLASS WiFiClient
216-
#endif
212+
#define EMAIL_NETWORK_CLASS WiFiClient
217213
#define EMAIL_NETWORK_SERVER_CLASS WiFiServer
218214

219215
#elif(EMAIL_NETWORK_TYPE == NETWORK_ETHERNET_LARGE)
@@ -241,11 +237,11 @@
241237

242238
#include <WiFiNINA.h>
243239
#ifndef FORCE_DISABLE_SSL
244-
#define EMAIL_NETWORK_CLASS WiFiClientSecure
240+
#define EMAIL_NETWORK_CLASS WiFiSSLClient
245241
#else
246242
#define EMAIL_NETWORK_CLASS WiFiClient
247243
#endif
248-
#define EMAIL_NETWORK_SSL_CLASS WiFiSSLClient
244+
//#define EMAIL_NETWORK_SSL_CLASS WiFiSSLClient
249245
#define EMAIL_NETWORK_SERVER_CLASS WiFiServer
250246

251247
#else
@@ -339,13 +335,13 @@
339335
#endif
340336
#endif
341337

342-
#ifdef EMAIL_NETWORK_SSL_CLASS
343-
#ifndef FORCE_DISABLE_SSL
344-
#define EMAIL_NETWORK_CLASS WiFiClientSecure
345-
#else
346-
#define EMAIL_NETWORK_CLASS WiFiClient
347-
#endif
348-
#endif
338+
//#ifdef EMAIL_NETWORK_SSL_CLASS
339+
// #ifndef FORCE_DISABLE_SSL
340+
// #define EMAIL_NETWORK_CLASS WiFiClientSecure
341+
// #else
342+
// #define EMAIL_NETWORK_CLASS WiFiClient
343+
// #endif
344+
//#endif
349345

350346
#define OPEN_CLOSE_INTERNAL
351347
#define OPEN_CLOSE_SD

EMailSenderKey.h

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.12
5+
* VERSION: 3.0.13
66
*
77
* https://www.mischianti.org/
88
*

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+
- 31/10/2023: v3.0.13 Fix wrong implementation of FORCE_DISABLE_SSL
2930
- 17/10/2023: v3.0.12 Fix warnigs of variable not used #43 thanks to @Patriboom @Andy2015
3031
- 16/02/2023: v3.0.11 Add support for Ethernet_Generic
3132
- 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)

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.12",
19+
"version": "3.0.13",
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.12
2+
version=3.0.13
33
author=Renzo Mischianti <[email protected]>
44
maintainer=Renzo Mischianti <[email protected]>
55
sentence=Send EMail via SMTP, library for Raspberry Pi Pico W, Arduino, SAMD (WiFiNINA), STM32, esp8266 and esp32.

0 commit comments

Comments
 (0)