forked from nailbuster/esp8266FTPServer
-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
Hello,
Once esp8266/Arduino#7404 is merged,(merged)
if you are tunning linux, (or WSL on windows),
you can run your ftp example on your PC and use host debug tools.
I have tried with ftp cmdline client and littlefs-ftp-server: it works with little files but not big ones (600KB), failing log:
(on both esp and emulation environment)
[FTP] Transfer 536 bytes net->FS
[FTP] Transfer 536 bytes net->FS
[FTP] Transfer 536 bytes net->FS
[FTP] Transfer 536 bytes net->FS
[FTP] Transfer 152 bytes net->FS
(both client and server frozen at that point)
IMPORTANT: you must replace all your %S by %s (and you can leave them like that) (they are very harmful for linux's printf, and man page advise to not use them).
To run the emulation environment, provided the above PR is merged and if you use esp8266 git master version,
cd /path/to/esp8266ArduinoCore/tests/host
export LIB=/path/to/libraries/esp8266FTPServer
make ULIBDIRS=${LIB} FORCE32=0 D=1 V=1 ${LIB}/examples/FTPServerSample/LittleFSSample/LittleFSSample
./bin/LittleFSSample/LittleFSSample -v
valgrind ./bin/LittleFSSample/LittleFSSample -v
gdb ./bin/LittleFSSample/LittleFSSample
-> run -vport will be 9021 (not 21)
Metadata
Metadata
Assignees
Labels
No labels