khoih-prog / AsyncFSWebServer_Teensy41

Asynchronous HTTP and WebSocket Server Library for Teensy 4.1 using QNEthernet with FS support. This library is one of the current or future Async libraries to support Teensy 4.1 using QNEthernet, such as AsyncHTTPRequest_Generic, AsyncHTTPSRequest_Generic, AsyncMQTT_Generic, Teensy41_AsyncWebServer, Teensy41_AsyncUDP, Teensy41_AsyncDNSServer, AsyncFSWebServer_Teensy41_SSL, etc.
GNU General Public License v3.0
2 stars 1 forks source link

Not abug but a livesign that the work is in progrss #2

Closed jakespeed1311 closed 1 year ago

jakespeed1311 commented 2 years ago

HI, Sorry if this is not the right place, but i want that you know that i have started. I am not familiar with git operations, at this moment.

i have some troube to bring files t the Teensy , now i have add the Teensy MTP to the Sourcecode. To be able to copy teh files to to LittleFS. From the PC and form Teensy Programm i can see that now. Hurray.

Next step is to check out why on my tests the website was not found from Async SerfeStatic on the FS.

greedings Jake

khoih-prog commented 2 years ago

I'm glad that you've started testing and moving ahead.

You can forked this library and update / modify your local copy to test. Then when it's better, make a PR to merge from time to time, so that other people can use that new enhancement.

You can also post code, examples here

strud commented 2 years ago

@jakespeed1311 Iam very interested in this as well, however my experience in this are is limited. I will help where I can and as a minimum can assist with testing.

khoih-prog commented 2 years ago

@jakespeed1311

Any progress on your side? I guess many more people are interested in what you're doing and achieving.

Give us some update, or update your GitHub copy with some notes.

Thanks,

jakespeed1311 commented 2 years ago

@khoih-prog Quick answer unfortunately no. Unfortunately I don't have time to program at the moment. I myself burn for it but there are currently more important private tasks that need my time and energy. I don't have an outlook when I can continue working.

I but the FTP Teensy server seen, very cool! My biggest problem is still to get the files without much effort on the Littlefs. Currently SD copy on Littlefs.... well But to access via the Async then I did not succeed so far.

Thanks that you started this AsyncFS!

Translated with www.DeepL.com/Translator (free version)

jakespeed1311 commented 2 years ago

@khoih-prog Hello, i changed in the Test Branch the AsyncFSWebServer.ino.. to copy Files from SD card to Littlefs. The Files will be copyed and the AsyncFSWebserver should find them. But I have no luck (knowlege) it will not find index.htm on the Littlefs. Now i try to find the problem..

That is what i got for http://192.168.12.115/ with Chrome.

################################################################################ AsyncWebServer::serveStatic: FS * = 0x2000B5EC AsyncStaticWebHandler: FS * = 0x2000B5EC AsyncWebServer::serveStatic: FS * = 0x2000B5EC AsyncStaticWebHandler: FS * = 0x2000B5EC AsyncWebServer::serveStatic: FS * = 0x2000B5EC AsyncStaticWebHandler: FS * = 0x2000B5EC AsyncWebServer::serveStatic: FS * = 0x2000B5EC AsyncStaticWebHandler: FS * = 0x2000B5EC AsyncServer::_accept: [16]: connected AsyncClient::_recv[16]: 493, PBUF_FLAG_PUSH NOT_FOUND: GET http://192.168.12.115/ _HEADER[Host]: 192.168.12.115 _HEADER[Connection]: keep-alive _HEADER[Pragma]: no-cache _HEADER[Cache-Control]: no-cache _HEADER[Upgrade-Insecure-Requests]: 1 _HEADER[User-Agent]: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36 _HEADER[Accept]: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9 _HEADER[Accept-Encoding]: gzip, deflate _HEADER[Accept-Language]: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7 AsyncClient::_sent[16]: 85, unacked= 0, acked= 85, space= 0 [AWS] onAck: len = 85 , time = 1 [AWS] _onDisconnect AsyncServer::_accept: [16]: connected [AWS] onPoll [AWS] onPoll [AWS] onPoll [AWS] onPoll [AWS] onPoll [AWS] onPoll [AWS] _onDisconnect

jakespeed1311 commented 2 years ago

Hello, now i am stuck, i found that the file was not sended, because at the end of the responce, there is only a request->send(response);) But i feel that here schould be an send(file content.. or send( FS*

Line 283 in AsyncFSWebHandlers_Teensy41.cpp.

I can't see wehre in function Send() will be a part that send the file body itself. Maybe i am wrong. All my files are in root of the littlef, also the index.htm what i tryed to browse. And allway i get an Internal Server Error 500. Sorry now iam helples.

greedings Jake

github-actions[bot] commented 1 year ago

Stale issue message