Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: ESP8266 NodeMCU, SD CARD & SimpleFtpServer #30873
    BrunoPicard
    Participant

      Hi, This is not a core bug.

      in reply to: ESP8266 NodeMCU, SD CARD & SimpleFtpServer #30867
      BrunoPicard
      Participant

        I can confirm that this is a bug in the SimpleFtpServer librairy, so there’s no need to check the FTP client settings.

        in reply to: ESP8266 NodeMCU, SD CARD & SimpleFtpServer #30866
        BrunoPicard
        Participant

          Hi,

          I traced the code and found out why the file is empty. The file.read() function always returns nb=0. Now I just need to find out why…

          boolean FtpServer::doRetrieve()
          {
          if (data.connected())
          {
          	int16_t nb = file.readBytes(buf, FTP_BUF_SIZE);
                  if (nb > 0)
          [...]
          
          in reply to: ESP8266 NodeMCU, SD CARD & SimpleFtpServer #30850
          BrunoPicard
          Participant

            Hi Renzo,
            Thanks for the feedback 🙂
            Filezilla is well configured: upload to SD CARD works perfectly. It’s the same using WinFTP.
            With the same settings, FTP works with another project that uses flash memory storage.

            The only changes to Arduino_esp32_SD.ino are :

            #include <WiFi.h>
            becomes
            #include <ESP8266WiFi.h>

            and

            SPI.begin(14, 12, 15, 13); //SCK, MISO, MOSI,SS
            if (SD.begin(13, SPI)) {

            becomes

            #define CS_PIN D8 
            [...]
            if (SD.begin(CS_PIN )) {
          Viewing 4 posts - 1 through 4 (of 4 total)