提交 6a1cc314 authored 作者: blu's avatar blu

new feature: evwifi

上级 6a152fbe
......@@ -38,6 +38,7 @@ class WifiMgr {
private:
json info;
string devSn;
string baseDir = "web/main/dist";
Server srv;
promise<int> p;
thread monitor;
......@@ -249,6 +250,7 @@ class WifiMgr {
monitor.detach();
//Headers headers = {{'Access-Control-Allow-Origin', '*'}, {'Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept'}};
srv.set_base_dir(this->baseDir.c_str());
srv.Get("/wifi", [this](const Request& req, Response& res) {
this->mode1Cnt = 0;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论