nkolban / ESP32_Explorer

ESP32 Explorer
Apache License 2.0
144 stars 37 forks source link

I need ESP32 explorer feature for my web application #33

Open snahmad opened 5 years ago

snahmad commented 5 years ago

Hi,

I need to return in JSON reply via HTTP rest api list of folders and sub folders with files names to be shown on UI. User can select files or folders and I can download it on PC. Is JSON module which generate files explorer is moduler, so I can use it as module integrate into my codebase. Otherwise I can write myself JSON generated from file system. any JSON format recommendation for folders and sub folders.

Thanks, Naeem

chegewara commented 5 years ago

https://github.com/espressif/esp-idf/tree/master/components/json

snahmad commented 5 years ago

Sure, I am using this json. I wonder Is there JSON format you are using to return list folders and sub folders files with nested levels.

chegewara commented 5 years ago

Like you can see in this code, all nested values are build from iterations and JSONObject. https://github.com/nkolban/ESP32_Explorer/blob/master/main/BLEExplorer.cpp

snahmad commented 5 years ago

I am using mongoose web server on ESP32 with card mount. I enable direct list. When I point my web server to folder. Web browser does not browser folders and shows folders and files as folder explorer enable_directory_listing = "yes"

Any idea.

It works on Windows platform. Mongoose web server shows folders and files.

snahmad commented 5 years ago

Like you can see in this code, all nested values are build from iterations and JSONObject. https://github.com/nkolban/ESP32_Explorer/blob/master/main/BLEExplorer.cpp

For Get JSON file system folders and files. This is more relevant.