设备超时连不上服务器以后,也不能重新组网,否则可能跑到别的网关那里去。

必须手工清除才能重新组网。
This commit is contained in:
nnhy 2016-01-15 07:10:56 +00:00
parent 954209dc13
commit 90092ff0b7
1 changed files with 9 additions and 9 deletions

View File

@ -450,8 +450,8 @@ void TinyClient::Ping()
{
TS("TinyClient::Ping");
ushort off = (Cfg->OfflineTime)*5;
debug_printf(" TinyClient::Ping Cfg->OfflineTime:%d\r\n", Cfg->OfflineTime);
/*ushort off = (Cfg->OfflineTime)*5;
//debug_printf(" TinyClient::Ping Cfg->OfflineTime:%d\r\n", Cfg->OfflineTime);
ushort now = Sys.Seconds();
if(off < 10) off = 30;
@ -477,7 +477,7 @@ void TinyClient::Ping()
//Password.SetLength(0);
//return;
}
}*/
TinyMessage msg;
msg.Code = 3;