Spritetm / libesphttpd

NOTE: THIS CODE IS UNMAINTAINED. Please take a look at https://github.com/chmorgan/libesphttpd instead.
125 stars 109 forks source link

Question about espFS and auth.c #37

Closed BLLuis closed 3 years ago

BLLuis commented 7 years ago

I've been using ESP8266_IOT_PLATFORM for a while with some problems in the base version of libesphttpd, some days ago I've update my code with this version and after some changes I got the system running better than before, no more random hangs, no more opened connections. But I have a question about espFS, the old code https://github.com/espressif/ESP8266_IOT_PLATFORM/blob/master/libesphttpd/espfs/espfs.c use memcpy to read flash and this one use spi_read. I have to use the old espfs.c file with this version because the new one always give me ESPFS_INIT_RESULT_NO_IMAGE and I don´t know why.

Maybe I missed something or this library if for another memory configuration or another platform?

Is there any example or doc about implementing auth.c, I'm thinking about a login form using the cgi callbacks and figure out that there is an auth.c that implements basic authorization and that will be enough for my needs but have no idea how to implement in the code, where to call, how to call and before implement my own login form want to know if there are any example, for me is easy to implement a login form vía cgi callback than implement auth.c due to lack of example or doc.

Im using a ESP8266 wroom2 with the latest version of ESP8266_RTOS_SDK

Thanks.