| 26 | #include "wifi_hotspot.h" |
| 27 | |
| 28 | int 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 | } |