Replies: 3 comments 9 replies
-
You should show library debug printing message on Serial to see that the card mounting is success or failed. If you read the comment in examples carefully, you will see the comment about the SD configuration requirement. Which you have to config this file to let the library knows for your SD card type and filesystem you used first. ESP-Mail-Client/src/ESP_Mail_FS.h Lines 90 to 124 in 149100d In file SDHelper.h, the second argument of function MailClient.sdMMCBegin using at line number 147 was set for 4-bit mode ESP-Mail-Client/src/extras/SDHelper.h Line 147 in 149100d If your MMC card interface is 4-bit, you don't have to do anything with that SDHelper.h file. Unless you connect MMC card in 1-bit mode, the line number 147 should change to
The function For SPI, 1-bit mode and 4-bit mode interfaces, please see this. |
Beta Was this translation helpful? Give feedback.
-
You must call if(!SD_MMC.begin()){
Serial.println("Card Mount Failed");
return;
} with SD_Card_Mountin(); You also need to close your file after you edited or modified it before calling the library to send message. |
Beta Was this translation helpful? Give feedback.
-
After you call |
Beta Was this translation helpful? Give feedback.
-
Build tool used:
Board used (ESP32/ESP8266/Arudino):
Other Libraries That are used:
#include "RTClib.h" // Librairie rtc pour DS1307#include <SPI.h>
#include <LoRa.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <WiFi.h>
#include <ESP_Mail_Client.h>
#include <extras/SDHelper.h>
#include "FS.h"
#include "SD_MMC.h
Description of problem:
Every time the receiver gets a message, it appens the "toto.txt" file in the SD card on board of the TTGO module.
Every day at 23h59, it sends the "toto" file by Email.
But after sending the message with the attachment, the SD slot is no longer accessible.
I must unplug and re-plug the SD car or cutt the power to get it working again........
Sorry for my english........
Share code snippet to reproduce the issue:
Additional information and things you've tried:
Beta Was this translation helpful? Give feedback.
All reactions