Replies: 1 comment
-
found an alternative solution. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
have spent the last 2 days working on this. I came across arduino-littlefs-upload and the files seem to upload. however I can not access them from the web page. I uploaded a config file,
I test using this code and the file is found:
File file = LittleFS.open("/config.json", FILE_WRITE);
however, the webpage cannot find the file. I uploaded a favicon.gif file and that too is not found.
I tried ./config.json and ./data/config.json I keep getting errors. what am I doing wrong.
The plugin does show the files are uploaded successfully.
I am using:
ESP32-WROOM
Arduino IDE 2.3.3
Windows 10
using the plugin to upload the files in /data
Building LittleFS filesystem
Command Line: C:\Users\AppData\Local\Arduino15\packages\esp32\tools\mklittlefs\3.0.0-gnu12-dc7f933\mklittlefs.exe -c C:\Users\Documents\Arduino\Stepper_motor\data -p 256 -b 4096 -s 1441792 C:\Users\AppData\Local\Temp\tmp-5364-kL43OauGt29v-.littlefs.bin
/config.json
/favicon.gif
Uploading LittleFS filesystem
Command Line: C:\Users\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.6\esptool.exe --chip esp32 --port COM13 --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 2686976 C:\Users\AppData\Local\Temp\tmp-5364-kL43OauGt29v-.littlefs.bin
esptool.py v4.6
Serial port COM13
Connecting....
Chip is ESP32-D0WD-V3 (revision v3.1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 88:13:bf:0b:d7:cc
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash will be erased from 0x00290000 to 0x003effff...
Compressed 1441792 bytes to 2753...
Writing at 0x00290000... (100 %)
Wrote 1441792 bytes (2753 compressed) at 0x00290000 in 10.3 seconds (effective 1118.3 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
Completed upload.
web page Console shows this error:
GET http://192.168.10.45/data/config.json net::ERR_ABORTED 500 (Internal Server Error)
or
GET http://192.168.10.45/config.json net::ERR_ABORTED 500 (Internal Server Error)
attached is the full code
stepmotor code.txt
Beta Was this translation helpful? Give feedback.
All reactions