Skip to content

Commit

Permalink
Add supports more devices and fixed STM32 compilation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Feb 2, 2022
1 parent ef73cec commit f47a180
Show file tree
Hide file tree
Showing 10 changed files with 105 additions and 90 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Mail Client Arduino Library v2.0.0
# Mail Client Arduino Library v2.0.1


[![Join the chat at https://gitter.im/mobizt/ESP_Mail_Client](https://badges.gitter.im/mobizt/ESP_Mail_Client.svg)](https://gitter.im/mobizt/ESP_Mail_Client?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Expand Down Expand Up @@ -78,7 +78,7 @@ See the [Usage](https://github.com/mobizt/ESP-Mail-Client#usage) section for how

## Tested Devices

This following devices were tested.
### This following devices were tested.

* Sparkfun ESP32 Thing
* NodeMCU-32
Expand All @@ -91,15 +91,16 @@ This following devices were tested.
* LAN8720 Ethernet PHY
* ENC28J60 SPI Ethernet module

Custom (External) Client tested
### Supposted Devices with flash size > 80k, using custom Clients.

* ESP32
* ESP8266
* Arduino MKR WiFi 1010
* Arduino MKR 1000



* Arduino SAMD
* Arduino STM32
* Arduino AVR
* Teensy 3.1 to 4.1
* Arduino Nano RP2040 Connect
* Raspberry Pi Pico


## Prerequisites (for built-in Client)
Expand Down Expand Up @@ -163,7 +164,7 @@ The flash (upload) result shows in the command prompt window will look similar t
If the custom built WiFiNINA firmware was installed, the debug message will show the library version with WiFiNINA firmware version which followed by built number (+21120).

```
> C: ESP Mail Client v2.0.0, Fw v1.4.8+21120
> C: ESP Mail Client v2.0.1, Fw v1.4.8+21120
```

## Library Instalation
Expand Down
6 changes: 3 additions & 3 deletions library.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "ESP Mail Client",
"version": "2.0.0",
"version": "2.0.1",
"keywords": "communication, email, imap, smtp, esp32, esp8266, samd, arduino",
"description": "E-Mail Client Arduino Library to send, read and get incoming E-mail notification for ESP32, ESP8266 and SAMD21 devices. The library also supported other Arduino Clients interfaces e.g. WiFiClient, EthernetClient, GSMClient.",
"description": "E-Mail Client Arduino Library to send, read and get incoming E-mail notification for ESP32, ESP8266 and SAMD21 devices. The library also supported other Arduino Clients interfaces e.g. WiFiClient, EthernetClient, and GSMClient.",
"repository": {
"type": "git",
"url": "https://github.com/mobizt/ESP-Mail-Client.git"
Expand All @@ -12,5 +12,5 @@
"email": "suwatchai@outlook.com"
}],
"frameworks": "arduino",
"platforms": "espressif32, espressif8266, atmelsam, raspberrypi, atmelmegaavr, ststm32"
"platforms": "espressif32, espressif8266, atmelsam, raspberrypi, atmelavr, atmelmegaavr, ststm32, teensy"
}
6 changes: 3 additions & 3 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name=ESP Mail Client

version=2.0.0
version=2.0.1

author=Mobizt

maintainer=Mobizt <suwatchai@outlook.com>

sentence=E-Mail Client Arduino Library to send E-mail, read and get incoming E-mail notification for ESP32, ESP8266 and SAMD21 devices.

paragraph=The library also supported other Arduino Clients interfaces e.g. WiFiClient, EthernetClient, GSMClient.
paragraph=The library also supported other Arduino Clients interfaces e.g. WiFiClient, EthernetClient, and GSMClient.

category=Communication

url=https://github.com/mobizt/ESP-Mail-Client

architectures=esp32, esp8266, samd, stm32, rp2040, teensy, avr
architectures=esp8266,esp32,sam,samd,stm32,STM32F1,STM32F4,teensy,avr,megaavr,mbed_nano,mbed_rp2040
12 changes: 4 additions & 8 deletions src/ESP_Mail_Client.cpp
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
/**
* Mail Client Arduino Library for Espressif's ESP32 and ESP8266 and SAMD21 with u-blox NINA-W102 WiFi/Bluetooth module
*
* Version: 2.0.0
* Released: February 1, 2022
* Version: 2.0.1
* Released: February 2, 2022
*
* Updates:
* - Add supports custom (external) Clients.
* - Add Supports SdFat.
* - Update IMAP polling features.
* - Update string class.
* - Fixed IMAP attachment headers saving info.
* - Fixed IMAP Quoted Printable encoded message saving data.
* - Add supports more MCUs.
* - Fixed STM32 compilation error.
*
*
* This library allows Espressif's ESP32, ESP8266 and SAMD devices to send and read Email through the SMTP and IMAP servers.
Expand Down
14 changes: 5 additions & 9 deletions src/ESP_Mail_Client.h
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
#ifndef ESP_Mail_Client_H
#define ESP_Mail_Client_H

#define ESP_MAIL_VERSION "2.0.0"
#define ESP_MAIL_VERSION "2.0.1"

/**
* Mail Client Arduino Library for Espressif's ESP32 and ESP8266 and SAMD21 with u-blox NINA-W102 WiFi/Bluetooth module
*
* Version: 2.0.0
* Released: February 1, 2022
* Version: 2.0.1
* Released: February 2, 2022
*
* Updates:
* - Add supports custom (external) Clients.
* - Add Supports SdFat.
* - Update IMAP polling features.
* - Update string class.
* - Fixed IMAP attachment headers saving info.
* - Fixed IMAP Quoted Printable encoded message saving data.
* - Add supports more MCUs.
* - Fixed STM32 compilation error.
*
*
*
Expand Down
4 changes: 2 additions & 2 deletions src/extras/MB_FS.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* The MB_FS, file wrapper class v1.0.0.
* The MB_FS, file wrapper class v1.0.1.
*
* This wrapper class is for SD and Flash file interfaces which support SdFat in ESP32 (//https://github.com/greiman/SdFat)
*
* Created January 18, 2022
* Created February 1, 2022
*
* The MIT License (MIT)
* Copyright (c) 2022 K. Suwatchai (Mobizt)
Expand Down
8 changes: 7 additions & 1 deletion src/extras/MB_List.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
#define MB_VECTOR MB_List
#endif

#if defined(__AVR__)
#define MB_LIST_NULL NULL
#else
#define MB_LIST_NULL nullptr
#endif

template <class eType>
class MB_List
{
Expand Down Expand Up @@ -99,7 +105,7 @@ class MB_List
{
if (e)
delete[] e;
e = nullptr;
e = MB_LIST_NULL;
eSize = 0;
}

Expand Down
Loading

0 comments on commit f47a180

Please sign in to comment.