Is there a way to improve File Upload from NodeMCU
Posted: Sat Aug 22, 2020 10:26 am
I'm having some doubts about the upload speed from ESP. I have a sample code at https://gist.github.com/durlabhjain/b93 ... 333d8ea3c9
This tries to emulate a stream with about 400KB. When I try to upload to a server on the local network, upload time is around 4 seconds giving me about 100KBPS. However, the same code takes about 30 seconds to the server giving only ~13KBPS. This seems quite slow. It doesn't seem to be radio issue as local server works great. I'm out of ideas at this moment and any help in this regard will be great.
The server side NodeJS code is available at https://gist.github.com/durlabhjain/30c ... 9b3b19b628
You should be able to run the code as-is by just change SSID and password if you want to give it a try.
On my network, I've 63ms ping time to the cloud server which seems to be a bit high. Still, I'm able to transfer files/ upload much faster using web forms etc. So I'm wondering if this is the max we can obtain or if there is something I'm missing.
This tries to emulate a stream with about 400KB. When I try to upload to a server on the local network, upload time is around 4 seconds giving me about 100KBPS. However, the same code takes about 30 seconds to the server giving only ~13KBPS. This seems quite slow. It doesn't seem to be radio issue as local server works great. I'm out of ideas at this moment and any help in this regard will be great.
The server side NodeJS code is available at https://gist.github.com/durlabhjain/30c ... 9b3b19b628
You should be able to run the code as-is by just change SSID and password if you want to give it a try.
On my network, I've 63ms ping time to the cloud server which seems to be a bit high. Still, I'm able to transfer files/ upload much faster using web forms etc. So I'm wondering if this is the max we can obtain or if there is something I'm missing.