Function esp_idf_hal::sys::esp_mesh_set_max_layer
source ยท pub unsafe extern "C" fn esp_mesh_set_max_layer(max_layer: i32) -> i32
Expand description
@brief 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.
@param[in] max_layer max layer value
@return
- ESP_OK
- ESP_ERR_MESH_ARGUMENT
- ESP_ERR_MESH_NOT_ALLOWED