esp_mesh_set_max_layer() function
Set network max layer value - for tree topology, the max is 25. - for chain topology, the max is 1000. - Network max layer limits the max hop count. @attention This API shall be called before mesh is started.
Return value
- ESP_OK - ESP_ERR_MESH_ARGUMENT - ESP_ERR_MESH_NOT_ALLOWED