Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems while integrating WebDAV to a ESP32 PICO V3 WiFi SD card #7

Open
aero4 opened this issue Jul 20, 2023 · 0 comments
Open

Problems while integrating WebDAV to a ESP32 PICO V3 WiFi SD card #7

aero4 opened this issue Jul 20, 2023 · 0 comments

Comments

@aero4
Copy link

aero4 commented Jul 20, 2023

Hi @rostwolke !
I am trying to implement your ESPAsyncWebdav library onto my new Fysetc SD Wifi Card which has an integrated ESP32 PICO V3.
I used the source code from their repository and the ESPAsyncWebServer they suggested and applied your changes.
I then added the code lines from your simple example.
My modified SdWiFiBrowser.ino from the original Fysetc firware looks like this (everything else is stock):

#include <Arduino.h>
#include "sdControl.h"
#include "config.h"
#include "serial.h"
#include "network.h"
#include "FSWebServer.h"
#include <SPIFFS.h>

// NEW:
#include <DateTime.h>
#include <LittleFS.h>
#include <AsyncWebdav.h>
AsyncWebdav dav("/dav", LittleFS);
//----

void setup() {
  SERIAL_INIT(115200);
  SPIFFS.begin();
  sdcontrol.setup();
  network.start();

  // NEW:
  LittleFS.begin();
  server.addHandler(&dav);
  // ----

  server.begin(&SPIFFS);
}

void loop() {
  network.loop();
}

I used their batch file to upload the firmware onto the SD card.

The Problem I am facing now is, that WebDAV is not available and when using serial monitor to connect to the SD card I see the following output:

E (12022) esp_littlefs: ./components/esp_littlefs/src/littlefs/lfs.c:1225:error: Corrupted dir pair at {0x0, 0x1}
E (12025) esp_littlefs: mount failed,  (-84)
E (12029) esp_littlefs: Failed to initialize LittleFS

A similar error also occurs when uploading your simple.ino example...

What can cause that kind of problem? Did I miss something?

(I am not very familiar with ESP32)

Thanks for any help in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant