| 40 | } |
| 41 | |
| 42 | bool 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 | } |
nothing calls this directly
no test coverage detected