This commit is contained in:
parent
e663411ebb
commit
df6bd08122
|
@ -79,7 +79,7 @@ bool EspSocket::OnOpen()
|
|||
|
||||
// 打开Socket。有OK/ERROR/ALREADY CONNECTED三种
|
||||
auto rt = _Host.Send(cmd + "\r\n", "OK", "ERROR", 1600);
|
||||
if(!rt.Contains("OK") && ! rt.Contains("ALREADY CONNECTED"))
|
||||
if(!rt.Contains("OK") && !rt.Contains("ALREADY CONNECTED"))
|
||||
{
|
||||
net_printf("协议 %d, %d 打开失败 \r\n", Protocol, Remote.Port);
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue