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

new feature: evwifi

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