Sending large files over ESP-MESH

praveen
Posts: 3
Joined: Thu May 27, 2021 4:16 am

Sending large files over ESP-MESH

Postby praveen » Thu May 27, 2021 5:03 am

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

michal.zima
Posts: 1
Joined: Fri Oct 22, 2021 5:11 am

Re: Sending large files over ESP-MESH

Postby michal.zima » Tue Oct 26, 2021 9:37 am

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

moefear85
Posts: 41
Joined: Sun Sep 05, 2021 4:55 pm

Re: Sending large files over ESP-MESH

Postby moefear85 » Thu Apr 07, 2022 7:23 pm

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.

Who is online

Users browsing this forum: No registered users and 6 guests