Skip to content

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

@aero4

Description

@aero4

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions