esp_mesh_stop() function
Stop mesh - Deinitialize mesh IE. - Disconnect with current parent. - Disassociate all currently associated children. - Stop mesh network management service. - Unregister mesh packets receive callback. - Delete TX and RX queues. - Release resources. - Restore Wi-Fi softAP to default settings if Wi-Fi dual mode is enabled. - Set Wi-Fi Power Save type to WIFI_PS_NONE.
Return value
- ESP_OK - ESP_FAIL