Skip to content

Commit

Permalink
Update for internal client.
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Mar 1, 2024
1 parent d0e5bfe commit 7ab4858
Show file tree
Hide file tree
Showing 350 changed files with 1,232 additions and 58 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 mobizt
Copyright (c) 2024 mobizt

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ Thanks for Edward Chuang (莊坪達) from Google for selecting this project.

The MIT License (MIT)

Copyright (c) 2023 K. Suwatchai (Mobizt)
Copyright (c) 2024 K. Suwatchai (Mobizt)


Permission is hereby granted, free of charge, to any person returning a copy of
Expand Down
2 changes: 2 additions & 0 deletions examples/SMTP/Set_Time/Set_Time.ino
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ void setup()

smtp.callback(smtpCallback);

smtp.setTCPTimeout(10);

Session_Config config;

config.server.host_name = SMTP_HOST;
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ESP Mail Client",
"version": "3.4.15",
"version": "3.4.16",
"keywords": "communication, email, imap, smtp, esp32, esp8266, samd, arduino",
"description": "Arduino E-Mail Client Library to send, read and get incoming email notification for ESP32, ESP8266 and SAMD21 devices. The library also supported other Arduino Devices using Clients interfaces e.g. WiFiClient, EthernetClient, and GSMClient.",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name=ESP Mail Client

version=3.4.15
version=3.4.16

author=Mobizt

Expand Down
4 changes: 0 additions & 4 deletions src/ESP_Mail_Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@

#pragma GCC diagnostic ignored "-Wunused-but-set-variable"

#include "ESP_Mail_Client_Version.h"
#if !VALID_VERSION_CHECK(30415)
#error "Mixed versions compilation."
#endif

/**
* Mail Client Arduino Library for Arduino devices.
Expand Down
6 changes: 1 addition & 5 deletions src/ESP_Mail_Client.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#ifndef ESP_MAIL_CLIENT_H
#define ESP_MAIL_CLIENT_H

#include "ESP_Mail_Client_Version.h"
#if !VALID_VERSION_CHECK(30415)
#error "Mixed versions compilation."
#endif

/**
* Mail Client Arduino Library for Arduino devices.
Expand Down Expand Up @@ -98,7 +94,7 @@ extern char *__brkval;

#endif

#include "ESP_Mail_TCPClient.h"
#include "./client/ESP_Mail_TCPClient.h"

using namespace mb_string;

Expand Down
6 changes: 3 additions & 3 deletions src/ESP_Mail_Client_Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

#ifndef ESP_MAIL_VERSION

#define ESP_MAIL_VERSION "3.4.15"
#define ESP_MAIL_VERSION_NUM 30415
#define ESP_MAIL_VERSION "3.4.16"
#define ESP_MAIL_VERSION_NUM 30416

/* The inconsistent file version checking to prevent mixed versions compilation. */
#define VALID_VERSION_CHECK(ver) (ver == ESP_MAIL_VERSION_NUM)
//#define VALID_VERSION_CHECK(ver) (ver == ESP_MAIL_VERSION_NUM)

#endif
4 changes: 0 additions & 4 deletions src/ESP_Mail_Const.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
#ifndef ESP_MAIL_CONST_H
#define ESP_MAIL_CONST_H

#include "ESP_Mail_Client_Version.h"
#if !VALID_VERSION_CHECK(30415)
#error "Mixed versions compilation."
#endif

#include <Arduino.h>
#include "ESP_Mail_FS.h"
Expand Down
5 changes: 0 additions & 5 deletions src/ESP_Mail_Error.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
#ifndef ESP_MAIL_ERROR_H
#define ESP_MAIL_ERROR_H

#include "ESP_Mail_Client_Version.h"
#if !VALID_VERSION_CHECK(30415)
#error "Mixed versions compilation."
#endif

#define TCP_CLIENT_ERROR_CONNECTION_REFUSED -1
#define TCP_CLIENT_ERROR_SEND_DATA_FAILED -2
#define TCP_CLIENT_ERROR_NOT_INITIALIZED -3
Expand Down
4 changes: 0 additions & 4 deletions src/ESP_Mail_FS.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
#ifndef ESP_MAIL_CONFIG_H
#define ESP_MAIL_CONFIG_H

#include "ESP_Mail_Client_Version.h"
#if !VALID_VERSION_CHECK(30415)
#error "Mixed versions compilation."
#endif

#include <Arduino.h>
#include "extras/MB_MCU.h"
Expand Down
5 changes: 0 additions & 5 deletions src/ESP_Mail_IMAP.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
#ifndef ESP_MAIL_IMAP_H
#define ESP_MAIL_IMAP_H

#include "ESP_Mail_Client_Version.h"
#if !VALID_VERSION_CHECK(30415)
#error "Mixed versions compilation."
#endif

/**
* Mail Client Arduino Library for Espressif's ESP32 and ESP8266, Raspberry Pi RP2040 Pico, and SAMD21 with u-blox NINA-W102 WiFi/Bluetooth module
*
Expand Down
5 changes: 0 additions & 5 deletions src/ESP_Mail_SMTP.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
#ifndef ESP_MAIL_SMTP_H
#define ESP_MAIL_SMTP_H

#include "ESP_Mail_Client_Version.h"
#if !VALID_VERSION_CHECK(30415)
#error "Mixed versions compilation."
#endif

/**
* Mail Client Arduino Library for Espressif's ESP32 and ESP8266, Raspberry Pi RP2040 Pico, and SAMD21 with u-blox NINA-W102 WiFi/Bluetooth module
*
Expand Down
Loading

0 comments on commit 7ab4858

Please sign in to comment.