提交 271aa7d2 authored 作者: blu's avatar blu

new feature: evwifi

上级 3794d622
......@@ -71,7 +71,7 @@ class WifiMgr {
fileApd.close();
// start hostapd
auto t = thread([](){
system("systemctl stop wpa_supplicant@wlan1;ifconfig wlan1 down;"
system("systemctl stop wpa_supplicant@wlan1;ifconfig wlan1 down;pkill hostapd;"
"ifconfig wlan1 up;ifconfig wlan1 192.168.0.1;hostapd /etc/apd.conf -B");
// TODO: check result
});
......@@ -116,8 +116,6 @@ class WifiMgr {
}
}
ret["wifiData"] = wifiData;
return ret;
}
......@@ -130,7 +128,6 @@ class WifiMgr {
//wifiData["wifi"]["ssid"] = string;
//wifiData["wifi"]["password"] = string;
monitor = thread([this](){
// check /etc/systemd/wpa_supplicant@wlan1.service
// get wlan1 status
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论