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

MichaelS
Posts: 46
Joined: Mon Jul 08, 2024 12:08 am

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

Postby MichaelS » Mon May 26, 2025 7:17 am

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

ahsrabrifat
Posts: 201
Joined: Sat Jan 18, 2025 2:31 pm

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

Postby ahsrabrifat » Mon May 26, 2025 8:17 am

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.

Who is online

Users browsing this forum: ChatGPT-User, Google [Bot], PerplexityBot, PetalBot, Qwantbot, Semrush [Bot] and 11 guests