组网以后重启一次

This commit is contained in:
nnhy 2015-12-16 15:25:50 +00:00
parent 3fc25fd7d7
commit 0f00e25394
1 changed files with 4 additions and 1 deletions

View File

@ -407,7 +407,7 @@ void GetDeviceKey(byte id, Array& key, void* param)
//debug_printf("微网客户端获取密钥");
auto client = (TinyClient*)param;
if(Sys.Version < 0xAA) return;
if(Sys.Version < 0xFFFF) return;
//key = client->Password;
key.Copy(client->Password, 8);
@ -502,6 +502,9 @@ bool TinyClient::OnJoin(const TinyMessage& msg)
// 保存配置
Cfg->Save();
// 组网以后重启一次
Sys.Reset();
return true;
}