ESP8266连接热点前输出调试日志
This commit is contained in:
parent
d411fae0a4
commit
80559c1a1d
|
@ -230,6 +230,10 @@ void Esp8266::OnClose()
|
||||||
|
|
||||||
bool Esp8266::OnLink(uint retry)
|
bool Esp8266::OnLink(uint retry)
|
||||||
{
|
{
|
||||||
|
//if(Linked) return true;
|
||||||
|
|
||||||
|
debug_printf("Esp8266::OnLink\r\n");
|
||||||
|
|
||||||
bool join = SSID && *SSID;
|
bool join = SSID && *SSID;
|
||||||
// 等待WiFi自动连接
|
// 等待WiFi自动连接
|
||||||
if (!WaitForCmd("WIFI CONNECTED", 3000))
|
if (!WaitForCmd("WIFI CONNECTED", 3000))
|
||||||
|
@ -366,7 +370,7 @@ String Esp8266::Send(const String& cmd, cstring expect, cstring expect2, uint ms
|
||||||
if (EnableLog)
|
if (EnableLog)
|
||||||
{
|
{
|
||||||
we.Command = &cmd;
|
we.Command = &cmd;
|
||||||
net_printf("%d=> ", task.ID);
|
//net_printf("%d=> ", task.ID);
|
||||||
cmd.Trim().Show(true);
|
cmd.Trim().Show(true);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -1078,7 +1082,7 @@ bool Esp8266::GetAPs(const Pair& args, Stream& result)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 只运行一次
|
// 只运行一次
|
||||||
Sys.AddTask(&Esp8266::GetAPsTask, this, 0, -1, "");
|
Sys.AddTask(&Esp8266::GetAPsTask, this, 0, -1, "GetAPs");
|
||||||
|
|
||||||
return rt;
|
return rt;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue