Closed BozoTClown closed 1 month ago
The library works normally for all filesystems. You have to check your code.
SPIFFS is deprecated and not recommended.
Please use LittleFS instead.
So now what you are saying that it does not work with ALL filesystems!
Dale
Please google.
Spent days googling no mention of SPIFFs being outdated. Also no mention as to why you sendmail need littleFS.
SPIFFS is deprecated in ESP32 Arduino Core v3.x.x and LittleFS was used by default.
You can change the default filesystem via src/ESP_Mail_FS.h.
You will see that LittleFS was set for the macro ESP_MAIL_DEFAULT_FLASH_FS
if ESP32 Core version is greater than v2.x.x on line no. 82-83.
If you want to use SPIFFS, you have to replace line mo.82-83 with following which is similar to line no. 87-88.
#include <SPIFFS.h>
#define ESP_MAIL_DEFAULT_FLASH_FS SPIFFS
Thank you very much for you reply. It was extremely helpful and I will try to mod you suggested. I hope it works as I am not extremely proficient in coding these things, as you can probably tell!
Thanks again
Made the mod you suggested. Still receiving the following messages, but the email does go though.
E (117705) esp_littlefs: ./components/esp_littlefs/src/littlefs/lfs.c:1225:error: Corrupted dir pair at {0x0, 0x1}
E (117706) esp_littlefs: mount failed, (-84)
E (117709) esp_littlefs: Failed to initialize LittleFS
When I reboot the device it goes into am endless reboot intil I unplug it. When I reload the SPIFFs data everything works fine until I send another email.
ets Jul 29 2019 12:21:46
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078000,len:13964
load:0x40080400,len:3600
entry 0x400805f0
E (266) psram: PSRAM ID read error: 0xffffffff
E (292) SPIFFS: mount failed, -10025
An Error has occurred while mounting SPIFFS
assert failed: tcpip_send_msg_wait_sem IDF/components/lwip/lwip/src/api/tcpip.c:455 (Invalid mbox)
Backtrace: 0x40083879:0x3ffcc430 0x4008fb5d:0x3ffcc450 0x40094fdd:0x3ffcc470 0x40120111:0x3ffcc5a0 0x40130bc5:0x3ffcc5d0 0x40130c25:0x3ffcc5f0 0x4011f8e9:0x3ffcc640 0x400d8ac1:0x3ffcc660 0x400d8b50:0x3ffcc6b0 0x401012d5:0x3ffcc6d0 0x40103ce7:0x3ffcc6f0 0x4010401d:0x3ffcc750 0x4010406c:0x3ffcc770 0x40104083:0x3ffcc790 0x400d5de0:0x3ffcc7b0 0x401072cd:0x3ffcc7d0
ELF file SHA256: 1631cebf28db2569
Don't reply via email. You should go to github to post your comment.
Where is your code that initiates SPIFFS?
Post your ESP_Mail_FS.h
here.
Build tool used:
Board used (ESP32/ESP8266/Arudino): Board - ESP32-Wroom-32
Other Libraries That are used:
include
include "SPIFFS.h"
include
include
include
include
include
include
include
include
include
include
Description of problem:
Share code snippet to reproduce the issue:
Additional information and things you've tried: I am using SPIFFS for other string stored on the device. What I have noticed is whenever I send an email the error occurrs priot to getting connected to the SMTP server. After the error message my device becomes unstable because it seems as though my SPIFF files are no longer present. After re-uploading them the device will function.
The complete error messgae is -
Connecting to SMTP server...
E (2164310) esp_littlefs: ./components/esp_littlefs/src/littlefs/lfs.c:1225:error: Corrupted dir pair at {0x0, 0x1}
E (2164311) esp_littlefs: mount failed, (-84) E (2164314) esp_littlefs: Failed to initialize LittleFS