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

Method create_if_enabled

OpenHD/ohd_interface/src/wifi_client.cpp:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42bool WiFiClient::create_if_enabled() {
43 const auto config = openhd::load_config();
44 if (!config.WIFI_LOCAL_NETWORK_ENABLE) {
45 return false;
46 }
47 const auto command = create_command_wifi_client(
48 config.WIFI_LOCAL_NETWORK_SSID, config.WIFI_LOCAL_NETWORK_PASSWORD);
49 OHDUtil::run_command(command, {}, true);
50 return true;
51}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected