Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

ESPGadgetWebDAV

WebDAV server running on an ESP32 wifi module

Currently supports basic PROPFIND, MOVE, DELETE, PUT and GET requests

Uses SPIFFS filesystem, formats filesystem on initial run.

Doesn't support folders, only files in the root folder

Tested on ESP8266-01, with 1MB flash

Updated for ESP32 and tested with

TTGO T-Display ESP32 ESP32 C3

Starts in AP mode

SSID: ESPGadget

Password: Admin12345

To disable Basic Authentication

REQUIRE_AUTH = false

otherwise set your authentication details

auth_username = "admin"; auth_password = "changeme";

Sample queries

Get a list of files

curl -v --data "" --header "depth:1"  --header "Content-Type: text/xml" --request PROPFIND http://192.168.4.1/
curl -v -u admin:changeme --data "" --header "depth:1"  --header "Content-Type: text/xml" --request PROPFIND http://192.168.4.1/

Download a file

curl -v "http://192.168.4.1/test.txt"
curl -v -u admin:changeme "http://192.168.4.1/test.txt"

Upload a file

curl -T test.txt http://192.168.4.1/test.txt
curl -u admin:changeme -T test.txt http://192.168.4.1/test.txt

Move/Rename a file

curl -X MOVE --header 'Destination: http://192.168.4.1/new_name.txt' 'http://192.168.4.1/test.txt'

Add ESP tools to Arduino IDE

Open Arduino IDE

Preferences

Set Additional Boards Manager URLs to "https://dl.espressif.com/dl/package_esp32_index.json, http://arduino.esp8266.com/stable/package_esp8266com_index.json"

Open the Boards Manager and search for ESP32, click install

Problems install ESP tools on MacOS

https://github.com/espressif/arduino-esp32/blob/master/docs/arduino-ide/mac.md

About

WebDAV server running on ESP8266/ESP32 wifi modules

Resources

Stars

38 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages