Page 1 of 1

Sending large files over ESP-MESH

Posted: Thu May 27, 2021 5:03 am
by praveen
Hi,
I need to send a file of size 1MB over the mesh network.
I am using esp_spiff.h to mount the file system and write the file onto flash.
Can I use fread() to read the entire file? Or do I need to limit the file read size?
As the wifi payload length is limited, do I need to fragment the data before sending to mwifi_write()?

Thank you

Re: Sending large files over ESP-MESH

Posted: Tue Oct 26, 2021 9:37 am
by michal.zima
Hello, unfortunatelly I can't help you. Actually, exact opposite.
I want to ask you, if you have figured out how to solve this problem, because I have the same one.
If yes, could you please share your solution?
It will be a great help.
Thanks

Re: Sending large files over ESP-MESH

Posted: Thu Apr 07, 2022 7:23 pm
by moefear85
unfortunately, automatic splitting of large messages never worked for me. The same goes for reliability. It doesn't seem like lost packets are retransmitted at all, or perhaps only those that arrive but with bad crc.

Anyways... I tried painlessmesh instead, which wasn't much better. In the end I resorted to coding my own library. It works, but it's not mature enough to upload to github yet.