MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / stop

Method stop

OpenHD/ohd_interface/src/wifi_hotspot.cpp:113–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void WifiHotspot::stop() {
114 m_console->debug("Stopping wifi hotspot on card {}", m_wifi_card.device_name);
115 if (!started) return;
116 const auto args =
117 std::vector<std::string>{"con", "down", OHD_WIFI_HOTSPOT_CONNECTION_NAME};
118 OHDUtil::run_command("nmcli", args);
119 m_console->info("Wifi hotspot stopped");
120}
121
122void WifiHotspot::start_async() {
123 openhd::AsyncHandle::instance().execute_async(

Callers 2

mainFunction · 0.45
~OHDInterfaceMethod · 0.45

Calls 1

debugMethod · 0.80

Tested by 1

mainFunction · 0.36