提交 89e5c803 authored 作者: blu's avatar blu

feature: LED & key trigger support

上级 a6dc6951
...@@ -275,6 +275,7 @@ private: ...@@ -275,6 +275,7 @@ private:
ret["code"] = 2; ret["code"] = 2;
ret["msg"] = msg; ret["msg"] = msg;
spdlog::error("evwifi {} {}", devSn, msg); spdlog::error("evwifi {} {}", devSn, msg);
ledNoNetwork();
} }
} }
} }
...@@ -342,9 +343,11 @@ public: ...@@ -342,9 +343,11 @@ public:
// having wifi ip // having wifi ip
if(ip == "192.168.0.1") { if(ip == "192.168.0.1") {
this->mode = 1; this->mode = 1;
ledPattAPMode();
} }
else if(!ssid.empty() && !password.empty()) { else if(!ssid.empty() && !password.empty()) {
this->mode = 2; this->mode = 2;
ledPattDefault();
} }
else { else {
spdlog::info("evwifi {} invalid state(having wifi IP but no config), switch to AP mode", this->devSn); spdlog::info("evwifi {} invalid state(having wifi IP but no config), switch to AP mode", this->devSn);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论