pub unsafe extern "C" fn esp_mesh_set_topology(
    topo: esp_mesh_topology_t
) -> esp_err_t
Expand description

@brief Set mesh topology. The default value is MESH_TOPO_TREE - MESH_TOPO_CHAIN supports up to 1000 layers

@attention This API shall be called before mesh is started.

@param[in] topo MESH_TOPO_TREE or MESH_TOPO_CHAIN

@return

  • ESP_OK
  • ESP_MESH_ERR_ARGUMENT
  • ESP_ERR_MESH_NOT_ALLOWED