d-a-v / ESPWebDAV

macOS, linux, windows: Natively sharing files - port 80 is shared
Other
40 stars 9 forks source link

Compilation error #22

Closed jajito closed 1 year ago

jajito commented 1 year ago

HI, I have changet the

include

to

include

and every LITTLEFS to LITTLEFS, as sugested by the manteiner of the library. I platformio no appears any error or problem, but when compiling it appears a problem in ESPWebDAV.cpp:

include/ESPWebDAV.cpp:1091:48: error: invalid conversion from 'char' to 'const uint8_t' {aka 'const unsigned char*'} [-fpermissive]

Am I doing something wrong or forgot something?. Thanks ini advance

serisman commented 1 year ago

Changing line 1091 from: auto numWrite = file.write(buf + written, numRead - written); to: auto numWrite = file.write((uint8_t*)buf + written, numRead - written); seems to fix the compile error.

Still testing if this actually works or not...

UPDATE: it seems to work just fine!

jajito commented 1 year ago

Now it compiles! Thanks serisman!

jajito commented 1 year ago

But doesn't work. Doesn't send info of the files or folders to the FTP client... The rest works ok...

d-a-v commented 1 year ago

But doesn't work. Doesn't send info of the files or folders to the FTP client...

Can you please give more input about your issue ?

d-a-v commented 1 year ago

Changing line 1091 from: auto numWrite = file.write(buf + written, numRead - written); to: auto numWrite = file.write((uint8_t*)buf + written, numRead - written);

fixed by #23