Webduino_Fileserver by classdisk

Cloned from Sketch Webduino_Fileserver by jrborba.rs

This sketch is missing a short description

Make sure that the SD is initialized and root points to the root directory. This has been tested using an ArduinoMega 2560 with a Wiznet 5100 based ethernet shield.

This snippet shows how to use Webduino's setUrlPathCommand to serve files from the root directory of an SD card.

It supports:

Listing: curl "192.168.1.80/fs"
Download: curl "192.168.1.80/fs/TESTFILE.INO"
Delete: curl -X DELETE "192.168.1.80/fs/TESTFILE.INO" 

Add the following line to the Ethernet/Webduino initialization: webserver.setUrlPathCommand(&fsAccessCmd);

Embed This Sketch

Use the following HTML code to embed the sketch code above in your blog or website.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/sketch:432733" frameborder="0"></iframe>

Embed The Serial Monitor

You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>