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

Method start

OpenHD/ohd_interface/src/wifi_hotspot.cpp:102–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100WifiHotspot::~WifiHotspot() { util_delete_nm_file(); }
101
102void WifiHotspot::start() {
103 m_console->debug("Starting WIFI hotspot on card {}", m_wifi_card.device_name);
104 const auto args =
105 std::vector<std::string>{"con", "up", OHD_WIFI_HOTSPOT_CONNECTION_NAME};
106 OHDUtil::run_command("nmcli", args);
107 started = true;
108 m_console->info("Wifi hotspot started");
109 std::cout << blue << "Started WIFI hotspot on card "
110 << m_wifi_card.device_name << reset << std::endl;
111}
112
113void WifiHotspot::stop() {
114 m_console->debug("Stopping wifi hotspot on card {}", m_wifi_card.device_name);

Callers 1

WBLinkMethod · 0.45

Calls 1

debugMethod · 0.80

Tested by

no test coverage detected