esp_mesh_set_type() function
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
Return value
- ESP_OK - ESP_ERR_MESH_NOT_ALLOWED