Function esp_idf_sys::esp_mesh_set_max_layer
source ยท pub unsafe extern "C" fn esp_mesh_set_max_layer(
max_layer: c_int,
) -> esp_err_t
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