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

Function main

OpenHD/ohd_interface/test/test_wifi_hotspot.cpp:28–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26#include "wifi_hotspot.h"
27
28int main(int argc, char *argv[]) {
29 OHDUtil::terminate_if_not_root();
30
31 WiFiCard wifiCard;
32 // need to manually paste the stuff in here
33 // wifiCard.interface_name="wlx244bfeb71c05";
34 // wifiCard.mac="24:4b:fe:b7:1c:05";
35 wifiCard.device_name = "wlan0";
36 wifiCard.mac = "e4:5f:01:b0:55:92";
37
38 OHDProfile profile{true, "none"};
39 WifiHotspot wifiHotspot{profile, wifiCard, openhd::WifiSpace::G2_4};
40 OHDUtil::keep_alive_until_sigterm();
41 openhd::log::get_default()->debug("test end");
42 return 0;
43}

Callers

nothing calls this directly

Calls 1

debugMethod · 0.80

Tested by

no test coverage detected