-
Notifications
You must be signed in to change notification settings - Fork 13.3k
servestatic (SPIFFS) method will not send the whole file (tested with 30kB file) #3075
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Out of curiosity, could you try #3027 ? |
Yes! but can you help in merging. Seems I've forgotten something.. $ git fetch origin pull/3073/head
git checkout FETCH_HEAD/3073/head |
I tried too that way and I failed. git remote add tcptest https://github.com/d-a-v/Arduino.git when you are done: git remote prune tcptest |
Got it. I'll try it. Do you know how to enable DEBUGV macros if you need I can enable them ? I did it a year ago but can't remember how to do it anymore :-) |
I don't know the proper way, but adding #define DEBUG_ESP_CORE |
I just flashed the new image but unfortunately the situation is the same. Browser stays at 'Connecting..'. Perhaps my issue could be something else ? I still don't see any debug messages which I find quite strange. I'll try to get them displayed. |
Finally got debug working. It seems you have to also call Serial.setDebugOutput(TRUE); Same thing, it jammed but hopefully this debug will reveal something. Here's log from Serial
|
The debug info reveals that esp stores your data in the outgoing tcp queue (:w) but are not actually sent to the client. Only some got out from esp (:sent). |
Attached wireshark log: |
Ok, now I tried connecting with my cell phone and it works !! There must be something wrong with my laptop WLAN adapter I guess.. here's log with connecting from cell phone
|
Glad it worked, but I would'nt suspect your laptop adapter. edit: I meant "without switching branch", not "without recompiling" |
Thanks. I tried and set lwip_bufferize to 0 and recompiled/flashed. With my cell phone that works also. So it seems esp is having some problems with my laptop wlan adapter. If you have some ideas I'm happy to debug more. |
I have something else to try, could you send me an email |
Was this gremlin resolved? I have the same issue and trying to understand if its my page or the ESP device. (Serving jquery, Bootstrap and some other CSS/javascript files that are quite large - 200k and above) I don't believe its a laptop wifi issue at this time as two seperate laptops have the same problem.. Richard |
It was resolved with what became this pull request. |
Hardware
Hardware: ESP-12E NodeMcu 1.0
Core Version: latest GIT
Description
Problems is that when using servestatic method esp8266 server does not send all content and browser stays at 'Connecting....'
I have uploaded files :
index.html
jquery-3.2.0.min.js.gz
into flash using ESP8266FS tool from Arduino IDE.
It seems index.html is sent okay but when ESP8266 server tries to send jquery-3.2.0.min.js.gz file it only sends part of it and not everything. Browser will stay 'connecting'
I this known error ? Can I enable some debugging to see better what is going on ?
Settings in IDE
Module: NodeMCU 1.0
Flash Size: 4MB/1MB
CPU Frequency: 80Mhz
Flash Mode: qio
Flash Frequency: 40Mhz
Upload Using: SERIAL
Reset Method: nodemcu
Sketch
The text was updated successfully, but these errors were encountered: