Function esp_idf_sys::esp_mesh_set_type
source ยท pub unsafe extern "C" fn esp_mesh_set_type(
type_: mesh_type_t,
) -> esp_err_t
Expand description
@brief Designate device type over the mesh network - MESH_IDLE: designates a device as a self-organized node for a mesh network - MESH_ROOT: designates the root node for a mesh network - MESH_LEAF: designates a device as a standalone Wi-Fi station that connects to a parent - MESH_STA: designates a device as a standalone Wi-Fi station that connects to a router
@param[in] type device type
@return
- ESP_OK
- ESP_ERR_MESH_NOT_ALLOWED