Page 1 of 1

Increase the WIFI_MESH MTU packet size so I can send larger MQTT messages

Posted: Mon May 26, 2025 7:17 am
by MichaelS
With the ESP-32 using IDF, is it possible to increase the WIFI_MESH MTU packet size so I can send larger MQTT messages across the WIFI_MESH network.
I thought (or hoped) the ESP library would break down the large MQTT packets for transmission across the WIFI_MESH network and they would be re-assembled in the MESH_ROOT for sending on to the Broker but this seems not to be the case. I am using ESP-IDF 5.3.1
Thanks

Re: Increase the WIFI_MESH MTU packet size so I can send larger MQTT messages

Posted: Mon May 26, 2025 8:17 am
by ahsrabrifat
Unfortunately, increasing the MTU in ESP-MESH is not currently supported:

It is constrained by the underlying UDP/IPv4 and 802.11 frame limits.

You may see config options like CONFIG_MESH_MTU in older SDKs, but they don’t allow exceeding ~1472 bytes due to hardware/firmware limitations.