Page 1 of 1
Sending data bigger than 8kB with MWIFI Router Example
Posted: Wed Oct 09, 2019 7:02 pm
by orlov127
I've been playing around with the router example in MWIFI for quite some time and I want to transmit photos through the mesh. The only issue is that this specific example is limited to 8kB.
Are there any suggested methods for splitting the data up to be transmitted? I know packet fragmentation is included, but I may have to split the data further if I have a file that is 1MB.
Re: Sending data bigger than 8kB with MWIFI Router Example
Posted: Thu Oct 10, 2019 12:28 pm
by ESP_Bond
ESP-MESH does not support data stream transmission. When the data packet exceeds 8k, fragment transmission is required. Our OTA data packet is also more than 1MB, and the method of fragment transmission is also adopted.
Re: Sending data bigger than 8kB with MWIFI Router Example
Posted: Mon Oct 14, 2019 4:46 pm
by orlov127
Ok, I see in the mwifi.c file that it mentions fragmentation and uses mwifi_subcontract_write function. I am trying to transmit an encoded photo.
In the router_example.c, you are using mwifi_write(). I have data that exceeds 8kB and I get the error "E (12109) [mwifi, 692]: <MDF_ERR_INVALID_ARG> !(size > 0 && size < 8096)" when I try to use mwifi_write(); Is there another function I should use?
Re: Sending data bigger than 8kB with MWIFI Router Example
Posted: Tue May 12, 2020 3:30 am
by i_juri
Hello, have you solved the problem of mwifi transmitting data larger than 8KB